Verbose mode added

This commit is contained in:
Alexandre Dulaunoy 2015-01-30 22:17:11 +01:00
parent cdbccbc256
commit f5a7a68a4c

View file

@ -65,6 +65,8 @@ for cert in fileinput.input(args.r):
f = open(fn, 'w+') f = open(fn, 'w+')
f.write(certb) f.write(certb)
f.close() f.close()
if args.v:
print "Certificate saved in " +fn
try: try:
x509 = X509.load_cert_string(certb, X509.FORMAT_DER) x509 = X509.load_cert_string(certb, X509.FORMAT_DER)