def san_extension(asn):
    return x509.subject_alt_name([x509.general_ip_address('127.0.0.1')], asn)
def valid_san(asn):
    ip = x509.general_ip_address('127.0.0.1')
    return x509.subject_alt_name([ip], asn)
Ejemplo n.º 3
0
def san_ext_with_email(asn):
    return x509.subject_alt_name([('rfc822Name', '*****@*****.**')], asn)
Ejemplo n.º 4
0
def san_empty_email(asn):
    email = ('rfc822Name', 'mail\[email protected]')
    return x509.subject_alt_name([email], asn)
def nonsense_san(asn):
    name = {'type-id': '1.2.3.4.5', 'value': b'\xff\xff'}
    return x509.subject_alt_name([('otherName', name)], asn)