projects
/
certmaster.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
github-1: support for hashing functions other than sha1
[certmaster.git]
/
scripts
/
certmaster-request
diff --git
a/scripts/certmaster-request
b/scripts/certmaster-request
index
de4d047
..
0f11ba4
100755
(executable)
--- a/
scripts/certmaster-request
+++ b/
scripts/certmaster-request
@@
-18,6
+18,7
@@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
import distutils.sysconfig
import optparse
import sys
import distutils.sysconfig
import optparse
import sys
+import xmlrpclib
from certmaster import requester
from certmaster import requester
@@
-36,5
+37,8
@@
if __name__ == "__main__":
try:
requester.request_cert(hostname=opts.hostname, ca_name=opts.ca)
try:
requester.request_cert(hostname=opts.hostname, ca_name=opts.ca)
+ except xmlrpclib.Fault as f:
+ print >> sys.stderr, "error: %s" % str(f.faultString)
except Exception as e:
print >> sys.stderr, "error: %s" % str(e)
except Exception as e:
print >> sys.stderr, "error: %s" % str(e)
+ sys.exit(1)