Skip to content

How to add several custom CA certificate #2355

Answered by seanmonstar
oyljerry asked this question in Q&A
Discussion options

You must be logged in to vote

Looking at native-tls docs, it seems you can only add one root at a time. So, You'd need to call add_root_certificate(cert) in a loop. Perhaps something like this:

for cert in root_certs {
    builder = builder.add_root_certificate(cert);
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by oyljerry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2354 on July 15, 2024 18:15.