From c683e17f2adb291ac564df4b33d7b1cb489dd9d8 Mon Sep 17 00:00:00 2001 From: Hans Lellelid Date: Mon, 23 May 2011 15:34:35 -0400 Subject: [PATCH] add --hostname option to certmaster-request to allow specifying the CN for the cert --- scripts/certmaster-request | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/certmaster-request b/scripts/certmaster-request index b40a66c..1d7df8c 100755 --- a/scripts/certmaster-request +++ b/scripts/certmaster-request @@ -16,8 +16,17 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. """ import distutils.sysconfig +import optparse from certmaster import requester if __name__ == "__main__": - requester.request_cert() + parser = optparse.OptionParser() + + parser.add_option('--hostname', action="store", dest="hostname", + metavar="NAME", + help='hostname to use as the CN for the certificate') + + (opts, args) = parser.parse_args() + + requester.request_cert(hostname=opts.hostname) -- 2.39.5