scripts/certmaster-request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 scripts/certmaster-request |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

New commits:
commit c683e17f2adb291ac564df4b33d7b1cb489dd9d8
Author: Hans Lellelid <hans@xxxxxxxxx>
Date:   Mon May 23 15:34:35 2011 -0400

    add --hostname option to certmaster-request to allow specifying the CN for the cert

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)


_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list


[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux