Compare commits
2 Commits
d1fccdef1d
...
fa7a76abcd
Author | SHA1 | Date |
---|---|---|
Emmanuel Garette | fa7a76abcd | |
Emmanuel Garette | 35e96a0686 |
|
@ -109,11 +109,10 @@ class OpenSSHIssuerPlugin(CryptographyIssuerPlugin):
|
|||
).decode()
|
||||
public_key += ' ' + cert['user']['email']
|
||||
# sign it with authority private key
|
||||
if 'root_authority' in cert and cert['root_authority']:
|
||||
authority = cert['root_authority']
|
||||
if 'root_authority' in cert:
|
||||
root_authority = cert['root_authority']
|
||||
else:
|
||||
authority = cert['authority']
|
||||
root_authority = get_by_root_authority(authority['id'])
|
||||
root_authority = get_by_root_authority(cert['authority']['id'])
|
||||
authority_private_key = root_authority.private_key
|
||||
cert['body'] = sign_certificate(
|
||||
cert['common_name'],
|
||||
|
|
Loading…
Reference in New Issue