Skip to content

gnutls: support CURLSSLOPT_NATIVE_CA#12137

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/gtls-ca-fallback
Closed

gnutls: support CURLSSLOPT_NATIVE_CA#12137
bagder wants to merge 1 commit into
masterfrom
bagder/gtls-ca-fallback

Conversation

@bagder

@bagder bagder commented Oct 16, 2023

Copy link
Copy Markdown
Member

Remove the CURL_CA_FALLBACK logic. That build option was added to allow primarily OpenSSL to use the default paths for loading the CA certs. For GnuTLS it was instead made to load the "system certs", which is different and not desirable.

The native CA store loading is now asked for with this option.

Follow-up to 7b55279

@bagder bagder added TLS feature-window A merge of this requires an open feature window labels Oct 16, 2023
@jay

jay commented Oct 16, 2023

Copy link
Copy Markdown
Member

also, unlike openssl, gnutls does not check verifypeer before importing certificates. if there is not a good reason for that we could put all the imports behind a if(verifypeer) like we do for openssl

@bagder

bagder commented Oct 16, 2023

Copy link
Copy Markdown
Member Author

if there is not a good reason for that we could put all the imports behind a if(verifypeer) like we do for openssl

Oh right, I think we should!

@jay jay force-pushed the bagder/gtls-ca-fallback branch from b08c425 to 6afe3ef Compare October 17, 2023 04:53
@bagder

bagder commented Oct 17, 2023

Copy link
Copy Markdown
Member Author

Nice!

Remove the CURL_CA_FALLBACK logic. That build option was added to allow
primarily OpenSSL to use the default paths for loading the CA certs. For
GnuTLS it was instead made to load the "system certs", which is
different and not desirable.

The native CA store loading is now asked for with this option.

Follow-up to 7b55279

Co-authored-by: Jay Satiro

Closes #12137
@bagder bagder force-pushed the bagder/gtls-ca-fallback branch from 6afe3ef to 45029bb Compare October 19, 2023 15:05
@bagder bagder closed this in 9cf4759 Oct 21, 2023
@bagder bagder deleted the bagder/gtls-ca-fallback branch October 21, 2023 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature-window A merge of this requires an open feature window TLS

Development

Successfully merging this pull request may close these issues.

2 participants