log = logging.getLogger(__name__)
-class SSL(Task):
+class OpenSSLKeys(Task):
+ name = 'openssl_keys'
"""
Generates and installs a signed SSL certificate.
To create a self-signed certificate:
- - ssl:
+ - openssl_keys:
# certificate name
root: # results in root.key and root.crt
To create a certificate signed by a ca certificate:
- - ssl:
+ - openssl_keys:
root: (self-signed certificate as above)
...
"""
def __init__(self, ctx, config):
- super(SSL, self).__init__(ctx, config)
+ super(OpenSSLKeys, self).__init__(ctx, config)
self.certs = []
self.installed = []
finally:
os.remove(local_path)
-task = SSL
+task = OpenSSLKeys