summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJim Shaver <dcypherd@gmail.com>2015-04-29 01:35:50 -0400
committerJim Shaver <dcypherd@gmail.com>2015-04-29 01:35:50 -0400
commita6d16be2c4cae7dfabedbe9c7782795713228b17 (patch)
tree16f0a8d466e26117e96ba25317ffd10e6ebd140e /examples
parent8a4a7ae68ac54d80ae36fa799010239791ffd934 (diff)
downloadpyopenssl-a6d16be2c4cae7dfabedbe9c7782795713228b17.tar.gz
md5->sha256 in usage details
Diffstat (limited to 'examples')
-rw-r--r--examples/certgen.py4
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