Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment