From 235e5a1a27b04a790cba988977d894266185135d Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Fri, 10 Jul 2015 19:45:47 -0500 Subject: support IPAddress encoding for general names --- tests/test_x509.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/test_x509.py') diff --git a/tests/test_x509.py b/tests/test_x509.py index 6ad891b1..9b6b8826 100644 --- a/tests/test_x509.py +++ b/tests/test_x509.py @@ -6,6 +6,7 @@ from __future__ import absolute_import, division, print_function import binascii import datetime +import ipaddress import os import pytest @@ -1001,6 +1002,8 @@ class TestCertificateSigningRequestBuilder(object): x509.OID_ORGANIZATION_NAME, u'We heart UTF8!\u2122' ) ])), + x509.IPAddress(ipaddress.ip_address(u"127.0.0.1")), + x509.IPAddress(ipaddress.ip_address(u"ff::")), ]), critical=False, ).sign(private_key, hashes.SHA256(), backend) @@ -1021,6 +1024,8 @@ class TestCertificateSigningRequestBuilder(object): x509.OID_ORGANIZATION_NAME, u'We heart UTF8!\u2122' ), ])), + x509.IPAddress(ipaddress.ip_address(u"127.0.0.1")), + x509.IPAddress(ipaddress.ip_address(u"ff::")), ] def test_subject_alt_name_unsupported_general_name(self, backend): -- cgit v1.2.3