Fix cert method name

This commit is contained in:
Disassembler 2018-11-07 21:56:53 +01:00
parent 2e97742d56
commit e5eaba1bc8
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -50,7 +50,7 @@ def get_cert_info():
'expires': '{} UTC'.format(cert.not_valid_after),
'method': 'manual'}
if os.access(ACME_CRON, os.X_OK):
data['method'] = 'letsencrypt'
data['method'] = 'automatic'
# Naive method of inferring if the cert is selfsigned
# Good enough as reputable CAs will never have the same subject and issuer CN
# and the 'method' field is used just to populate a GUI element and not for any real cryptography