Compare commits
2 Commits
pkg/dev/ri
...
d1fccdef1d
Author | SHA1 | Date | |
---|---|---|---|
d1fccdef1d | |||
5c8981d580 |
2
debian/rules
vendored
2
debian/rules
vendored
@ -11,6 +11,8 @@ export PYBUILD_DISABLE_python3 = test
|
||||
# only last version are supported by lemur
|
||||
# but Ubuntu has not last version
|
||||
sed -i "s/==\(\([[:digit:]]\)*\(\.\)*\)*//g" requirements.txt
|
||||
# unecessary dependency
|
||||
sed -i "s/zope.deferredimport/#zope.deferredimport/g" requirements.txt
|
||||
dh $@ --with python3 --buildsystem=pybuild
|
||||
|
||||
override_dh_install:
|
||||
|
@ -109,10 +109,11 @@ class OpenSSHIssuerPlugin(CryptographyIssuerPlugin):
|
||||
).decode()
|
||||
public_key += ' ' + cert['user']['email']
|
||||
# sign it with authority private key
|
||||
if 'root_authority' in cert:
|
||||
root_authority = cert['root_authority']
|
||||
if 'root_authority' in cert and cert['root_authority']:
|
||||
authority = cert['root_authority']
|
||||
else:
|
||||
root_authority = get_by_root_authority(cert['authority']['id'])
|
||||
authority = cert['authority']
|
||||
root_authority = get_by_root_authority(authority['id'])
|
||||
authority_private_key = root_authority.private_key
|
||||
cert['body'] = sign_certificate(
|
||||
cert['common_name'],
|
||||
|
Reference in New Issue
Block a user