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

Fix SSL certificate handling & minor printf format fixes #254

Merged
merged 5 commits into from Jun 8, 2022

Conversation

dougnazar
Copy link
Contributor

Always load CA certificates if available.

Use SSL_CTX_use_certificate_chain_file() to load our public certifcate
to allow loading intermediate & root CAs.

Verify that certificate & private key match.

This allows us to present the full certificate chain during handshake
with the intermediate & root CAs stored in either the CA file or
certificate file or a combination thereof.

Always load CA certificates if available.

Use SSL_CTX_use_certificate_chain_file() to load our public certifcate
to allow loading intermediate & root CAs.

Verify that certificate & private key match.

This allows us to present the full certificate chain during handshake
with the intermediate & root CAs stored in either the CA file or
certificate file or a combination thereof.
@dougnazar
Copy link
Contributor Author

Noticed the following items while testing with testssl. With the correct options, can now achieve an A+ grade.

  • Enforce server cipher order
  • Disable renegotiation.

Plus a few fixes to support compiling in a separate build directory.

@sawolf
Copy link
Member

sawolf commented Jun 8, 2022

All of these changes look good to me - thanks for the patches

@sawolf sawolf merged commit 6111b18 into NagiosEnterprises:master Jun 8, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants