Closes #246
This commit is contained in:
parent
a30b8b21e4
commit
576265e09c
|
@ -144,7 +144,7 @@ def mint(issuer_options):
|
||||||
if not issuer_options.get('csr'):
|
if not issuer_options.get('csr'):
|
||||||
csr, private_key = create_csr(issuer_options)
|
csr, private_key = create_csr(issuer_options)
|
||||||
else:
|
else:
|
||||||
csr = issuer_options.get('csr')
|
csr = str(issuer_options.get('csr'))
|
||||||
private_key = None
|
private_key = None
|
||||||
|
|
||||||
issuer_options['creator'] = g.user.email
|
issuer_options['creator'] = g.user.email
|
||||||
|
|
|
@ -232,7 +232,7 @@ class CertificatesList(AuthenticatedResource):
|
||||||
"owner": "bob@example.com",
|
"owner": "bob@example.com",
|
||||||
"description": "test",
|
"description": "test",
|
||||||
"selectedAuthority": "timetest2",
|
"selectedAuthority": "timetest2",
|
||||||
"csr",
|
"csr": "----BEGIN CERTIFICATE REQUEST-----...",
|
||||||
"authority": {
|
"authority": {
|
||||||
"body": "-----BEGIN...",
|
"body": "-----BEGIN...",
|
||||||
"name": "timetest2",
|
"name": "timetest2",
|
||||||
|
|
Loading…
Reference in New Issue