Skip to content
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

Bug - generated CA cert is not a valid CA #16

Open
cruelsmith opened this issue Nov 19, 2024 · 0 comments
Open

Bug - generated CA cert is not a valid CA #16

cruelsmith opened this issue Nov 19, 2024 · 0 comments

Comments

@cruelsmith
Copy link

The commit a36dedb tried to workaround the bug voxpupuli/puppet-openssl#230 which created puppet run errors and was introduced with v3.0.0.

Now with openssl 3.2.2 (RedHat 9.5) the openssl_ca.cnf creates CA certs which are not marked as CA certs anymore:

# openssl x509 -noout -in ca.crt -purpose

Certificate purposes:
SSL client : Yes
SSL client CA : No
SSL server : Yes
SSL server CA : No
[...]
# openssl s_client -connect "$(hostname -f):636"
[...]
depth=1 DC=<fqdn>, CN=<hostname>CA
verify error:num=26:unsuitable certificate purpose
[...]
---
SSL handshake has read 2894 bytes and written 414 bytes
Verification error: unsuitable certificate purpose
---
[...]

When the v3_req section has the same content as the v3_ca this would also work and the result would be an valid CA cert:

[ v3_ca ]
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid:always,issuer:always
basicConstraints = CA:true

[ v3_req ]
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid:always,issuer:always
basicConstraints = CA:true
# openssl x509 -noout -in ca.crt -purpose

Certificate purposes:
SSL client : Yes
SSL client CA : No
SSL server : Yes
SSL server CA : No
[...]

I suggest to wait for a new release of voxpupuli/puppet-openssl (> 4.1.0) and then remove the unneeded v3_req section again from openssl_ca.cnf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant