Is it possible to set subjectAltName using pyOpenSSL?
问题 I need to generate SSL certificates from Python using pyOpenSSL. Does anyone know if it's possible to set subjectAltName? From the documentation (https://pythonhosted.org/pyOpenSSL/api/crypto.html#x509-objects) it doesn't seem so. In fact, only a set_subject method is provided. Is there any way to add that to the certificate? 回答1: san_list = ["DNS:*.google.com", "DNS:google.ym"] cert.add_extensions([ OpenSSL.crypto.X509Extension( "subjectAltName", False, ", ".join(san_list) ) ]) 回答2: I