X-Git-Url: https://pwan.org/git/?p=certmaster.git;a=blobdiff_plain;f=scripts%2Fcertmaster-request;h=6b3414fb96a107245fd9dea5de2c7cd41c82d7c3;hp=c731fdbb5e9ad40d9b607602afffb4e9ad103e7b;hb=240ba9b7e2ee00a8f6014c7d597a5afd1f96249c;hpb=4a7f409334528affd3b0245f9fe6e0b35e50e54b diff --git a/scripts/certmaster-request b/scripts/certmaster-request index c731fdb..6b3414f 100755 --- a/scripts/certmaster-request +++ b/scripts/certmaster-request @@ -1,12 +1,36 @@ #!/usr/bin/python +""" +Application to request a cert from a certmaster. +Takes no arguments, uses /etc/certmaster/minion.conf + +Copyright 2008, Red Hat, Inc +Michael DeHaan + +This software may be freely redistributed under the terms of the GNU +general public license. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +""" -import sys import distutils.sysconfig +import optparse + +from certmaster import requester + +if __name__ == "__main__": + parser = optparse.OptionParser() -print "This app is not implemented yet!" + parser.add_option('--hostname', action="store", dest="hostname", + metavar="NAME", + help='hostname to use as the CN for the certificate') + + parser.add_option('--ca', action="store", dest="ca", default='', + metavar="CA", + help='certificate authority used to sign the certificate') + + (opts, args) = parser.parse_args() -# from func.minion import server -# -#if __name__ == "__main__": -# server.main(sys.argv) + requester.request_cert(hostname=opts.hostname, ca_name=opts.ca)