changeset 847:1a1f4941633b

Simpler function name: create_request.
author Martin Geisler <mg@daimi.au.dk>
date Thu, 24 Jul 2008 22:38:14 +0200
parents 92c63c37937b
children be0907a7a885
files apps/generate-certificates.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/apps/generate-certificates.py	Tue Jul 22 11:06:55 2008 +0200
+++ b/apps/generate-certificates.py	Thu Jul 24 22:38:14 2008 +0200
@@ -53,7 +53,7 @@
     fp.write(crypto.dump_privatekey(crypto.FILETYPE_PEM, key))
     fp.close()
 
-def create_cert_request(pk, common_name, digest="sha1"):
+def create_request(pk, common_name, digest="sha1"):
     """Create a certificate request."""
     req = crypto.X509Req()
     subj = req.get_subject()
@@ -82,7 +82,7 @@
     fp.close()
 
 ca_key = create_key(options.key_size)
-ca_req = create_cert_request(ca_key, "VIFF Certificate Authority")
+ca_req = create_request(ca_key, "VIFF Certificate Authority")
 ca_cert = create_cert(ca_req, ca_req, ca_key, 0)
 
 save_key(ca_key, "ca.key")
@@ -90,7 +90,7 @@
 
 for i in range(1, options.n + 1):
     key = create_key(options.key_size)
-    req = create_cert_request(key, "VIFF Player %d" % i)
+    req = create_request(key, "VIFF Player %d" % i)
     cert = create_cert(req, ca_cert, ca_key, i)
 
     save_key(key, "%s-%d.key" % (options.prefix, i))