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

load whole ssl certificate chain when loading certificates #460

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

vonsch
Copy link
Contributor

@vonsch vonsch commented Aug 6, 2024

This is needed for proper supply of whole certificate chain. Otherwise intermediate certificates from pem file are not loaded and served which causes SSL validation errors.

Even recommended by openssl documetation:

SSL_CTX_use_certificate_chain_file() should be used instead of the SSL_CTX_use_certificate_file() function in order to allow the use of complete certificate chains even when no trusted CA storage is used or when the CA issuing the certificate shall not be added to the trusted CA storage.

This is needed for proper supply of whole certificate chain. Otherwise
intermediate certificates from pem file are not loaded and served which
causes SSL validation errors.

Even recommended by openssl documetation:
```
SSL_CTX_use_certificate_chain_file() should be used instead of the SSL_CTX_use_certificate_file() function in order to allow the use of complete certificate chains even when no trusted CA storage is used or when the CA issuing the certificate shall not be added to the trusted CA storage.
```

Signed-off-by: Adam Tkac <[email protected]>
@grobian grobian merged commit 7b8ddf9 into grobian:master Aug 6, 2024
18 of 19 checks passed
@grobian
Copy link
Owner

grobian commented Aug 6, 2024

thanks!

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.

2 participants