-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x509_certificate without csr_path #32
Comments
Some fields in a certificate that are very commonly used are only present in a CSR. OpenSSL will use some defaults in your example (e.g. which extensions to use) and go through a whole interactive Q&A session to ask you for these fields that are usually in a CSR (fields for the Subject of the certificate). What's your use case that uses this type of self-signed certificates? |
With the example command I showed it's just for using in local development. Thought if a field isn't required on the command line it's better if not required in ansible. |
@rightaway do I understand you correctly that you want a certificate without any special properties? I.e. no common name, no SANs, nothing else that's not absolutely necessary (like public key, signature, serial number)? |
Basically the same certificate as generated by the command in the first message. The ansible module shouldn't impose any restrictions that the command line doesn't. |
For the |
resolved_by_pr #129 |
SUMMARY
An explicit
csr_path
shouldn't be required when generating an openssl certificate. A valid command to generate a certificate isopenssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
, which doesn't require a csr file.ansible/ansible#68736 was closed saying to post here.
ISSUE TYPE
COMPONENT NAME
openssl_certificate
The text was updated successfully, but these errors were encountered: