我需要使用pyOpenSSL从Python生成SSL证书.有谁知道是否可以设置subjectAltName?从文档(https://pythonhosted.org/pyOpenSSL/api/crypto.html#x509-objects)来看,它似乎并非如此.实际上,只提供了set_subject方法.有没有办法将其添加到证书中?
san_list = ["DNS:*.google.com", "DNS:google.ym"] cert.add_extensions([ OpenSSL.crypto.X509Extension( "subjectAltName", False, ", ".join(san_list) ) ])