diff options
| author | Jim Shaver <dcypherd@gmail.com> | 2015-04-29 01:35:50 -0400 |
|---|---|---|
| committer | Jim Shaver <dcypherd@gmail.com> | 2015-04-29 01:35:50 -0400 |
| commit | a6d16be2c4cae7dfabedbe9c7782795713228b17 (patch) | |
| tree | 16f0a8d466e26117e96ba25317ffd10e6ebd140e /examples | |
| parent | 8a4a7ae68ac54d80ae36fa799010239791ffd934 (diff) | |
| download | pyopenssl-a6d16be2c4cae7dfabedbe9c7782795713228b17.tar.gz | |
md5->sha256 in usage details
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/certgen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/certgen.py b/examples/certgen.py index 89c7ca4..c88ed38 100644 --- a/examples/certgen.py +++ b/examples/certgen.py @@ -30,7 +30,7 @@ def createCertRequest(pkey, digest="sha256", **name): Create a certificate request. Arguments: pkey - The key to associate with the request - digest - Digestion method to use for signing, default is md5 + digest - Digestion method to use for signing, default is sha256 **name - The name of the subject of the request, possible arguments are: C - Country name @@ -64,7 +64,7 @@ def createCertificate(req, issuerCertKey, serial, validityPeriod, digest="sha256 starts being valid notAfter - Timestamp (relative to now) when the certificate stops being valid - digest - Digest method to use for signing, default is md5 + digest - Digest method to use for signing, default is sha256 Returns: The signed certificate in an X509 object """ (issuerCert, issuerKey) = issuerCertKey |
