From 693fd5e36e6dbae6776e19285b7e0b08ca8b3089 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sun, 8 Jan 2012 21:23:50 +0000 Subject: [PATCH] make it possible to specify the format in which to retrieve the crl --- autoca/ca_tool.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autoca/ca_tool.py b/autoca/ca_tool.py index 0516ffe..88d0ffc 100644 --- a/autoca/ca_tool.py +++ b/autoca/ca_tool.py @@ -51,7 +51,10 @@ def main(): if cmd == 'get-ca': writeout(opts.output, ca.get_ca()) 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': if not opts.subject: parser.error('Must specify --subject') -- GitLab