mirror of
https://github.com/certbot/certbot.git
synced 2026-04-24 23:56:58 -04:00
rename function and add sanity-checking assertion
This commit is contained in:
parent
7e4069f691
commit
6dcf213ff6
1 changed files with 2 additions and 1 deletions
|
|
@ -4,10 +4,11 @@
|
|||
|
||||
from M2Crypto import EVP, X509, RSA
|
||||
|
||||
def mkreq(names, bits=2048):
|
||||
def make_request(names, bits=2048):
|
||||
"""Return a tuple (key, csr) containing a PEM-formatted private key
|
||||
of the specified number of bits and a CSR requesting a certificate for
|
||||
the specified DNS names."""
|
||||
assert names, "Must provide one or more hostnames."
|
||||
pk = EVP.PKey()
|
||||
x = X509.Request()
|
||||
rsa = RSA.gen_key(bits, 65537)
|
||||
|
|
|
|||
Loading…
Reference in a new issue