Commit a444d787 authored by ale's avatar ale
Browse files

fixes

parent 27aa4b81
......@@ -40,14 +40,14 @@ def main():
cmd, args = args[0], args[1:]
if cmd == 'get-ca':
writeout(opts.output, ca.get_ca(parse=False))
writeout(opts.output, ca.get_ca())
elif cmd == 'get-crl':
writeout(opts.output, ca.get_crl(parse=False))
writeout(opts.output, ca.get_crl(format='pem'))
elif cmd == 'sign':
if not opts.subject:
parser.error('Must specify --subject')
subject = certutil.parse_subject(opts.subject)
pkey, cert = ca.sign_certificate(subject, days=7,
pkey, cert = ca.make_certificate(subject, days=7,
server=opts.server)
writeout(opts.output, crypto.dump_certificate(
crypto.FILETYPE_PEM, cert))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment