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