viff

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 diff
     1.1 --- a/apps/generate-certificates.py	Tue Jul 22 11:06:55 2008 +0200
     1.2 +++ b/apps/generate-certificates.py	Thu Jul 24 22:38:14 2008 +0200
     1.3 @@ -53,7 +53,7 @@
     1.4      fp.write(crypto.dump_privatekey(crypto.FILETYPE_PEM, key))
     1.5      fp.close()
     1.6  
     1.7 -def create_cert_request(pk, common_name, digest="sha1"):
     1.8 +def create_request(pk, common_name, digest="sha1"):
     1.9      """Create a certificate request."""
    1.10      req = crypto.X509Req()
    1.11      subj = req.get_subject()
    1.12 @@ -82,7 +82,7 @@
    1.13      fp.close()
    1.14  
    1.15  ca_key = create_key(options.key_size)
    1.16 -ca_req = create_cert_request(ca_key, "VIFF Certificate Authority")
    1.17 +ca_req = create_request(ca_key, "VIFF Certificate Authority")
    1.18  ca_cert = create_cert(ca_req, ca_req, ca_key, 0)
    1.19  
    1.20  save_key(ca_key, "ca.key")
    1.21 @@ -90,7 +90,7 @@
    1.22  
    1.23  for i in range(1, options.n + 1):
    1.24      key = create_key(options.key_size)
    1.25 -    req = create_cert_request(key, "VIFF Player %d" % i)
    1.26 +    req = create_request(key, "VIFF Player %d" % i)
    1.27      cert = create_cert(req, ca_cert, ca_key, i)
    1.28  
    1.29      save_key(key, "%s-%d.key" % (options.prefix, i))