Commit 693fd5e3 authored by ale's avatar ale
Browse files

make it possible to specify the format in which to retrieve the crl

parent b2cead60
...@@ -51,7 +51,10 @@ def main(): ...@@ -51,7 +51,10 @@ def main():
if cmd == 'get-ca': if cmd == 'get-ca':
writeout(opts.output, ca.get_ca()) writeout(opts.output, ca.get_ca())
elif cmd == 'get-crl': elif cmd == 'get-crl':
writeout(opts.output, ca.get_crl(format='pem')) fmt = 'pem'
if args:
fmt = args[0].lower()
writeout(opts.output, ca.get_crl(format=fmt))
elif cmd == 'sign': elif cmd == 'sign':
if not opts.subject: if not opts.subject:
parser.error('Must specify --subject') parser.error('Must specify --subject')
Supports Markdown
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