test_util.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:txacme 作者: twisted 项目源码 文件源码
def test_common_name_too_long(self):
        """
        If the first name provided is too long, `~txacme.util.csr_for_names`
        uses a dummy value for the common name.
        """
        self.assertThat(
            csr_for_names([u'aaaa.' * 16], RSA_KEY_512_RAW),
            MatchesStructure(
                subject=Equals(x509.Name([
                    x509.NameAttribute(
                        NameOID.COMMON_NAME,
                        u'san.too.long.invalid')]))))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号