def generate_certificate_signing_request(conf, domain):
key = load_private_key(conf, domain)
LOG.info("Creating Certificate Signing Request.")
csr = crypto.X509Req()
csr.get_subject().countryName = domain['countryName']
csr.get_subject().CN = domain['name']
csr.set_pubkey(key)
csr.sign(key, "sha1")
return (csr, key)
评论列表
文章目录