Comment 1 for bug 1483391

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

For some reason the openssl.cnf file shipped in data/openssl.cnf is not being honored:
def gen_selfsigned_cert(cert_file, key_file):
...
    subprocess.call(
        ['openssl', 'req', '-new', '-x509', '-nodes', '-config',
         os.path.join(os.environ['CHARM_DIR'], 'data', 'openssl.cnf'),
         '-keyout', key_file, '-out', cert_file],)

A quick dirty fix is to add '-days', '3650' to the command line.