ironic.common.tls_utils module¶
- ironic.common.tls_utils.generate_tls_certificate(output, private_key_output, common_name, ip_address, valid_for_days=30)[source]¶
Generate a self-signed TLS certificate.
- Parameters:
output – Output file name for the certificate.
private_key_output – Output file name for the private key.
common_name – Content for the common name field (e.g. host name).
ip_address – IP address the certificate will be valid for.
valid_for_days – Number of days the certificate will be valid for.
- Returns:
the generated certificate as a string.