|
|
|
@ -182,7 +182,7 @@ def sign_client_certifacation_request(ca_keyfile, ca_certfile, requestfile, out_
|
|
|
|
|
crypto.X509Extension(b'extendedKeyUsage', False, b'clientAuth'),
|
|
|
|
|
crypto.X509Extension(b'nsComment', False, 'group:{}'.format(group).encode("UTF-8")),
|
|
|
|
|
])
|
|
|
|
|
cert.sign(pkey, 'sha1')
|
|
|
|
|
cert.sign(pkey, 'sha256')
|
|
|
|
|
|
|
|
|
|
with writeFile(out_cert, binary=True) as f:
|
|
|
|
|
f.write(crypto.dump_certificate(crypto.FILETYPE_PEM, cert))
|
|
|
|
|