Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Verify CA from on-disk file #237

Merged
merged 2 commits into from
Nov 27, 2021
Merged

Verify CA from on-disk file #237

merged 2 commits into from
Nov 27, 2021

Conversation

keeshux
Copy link
Member

@keeshux keeshux commented Nov 26, 2021

Revert part of #213 again, because SSL_CTX_load_verify_locations
is just more reliable at setting up the trust store.

It looks like it's able to reference the .pem multiple times in
those cases where the root issuer of the CA is also embedded in
the file (which is the case with e.g. Let's Encrypt).

This is better than the current implementation, and I couldn't
easily find a way to do the same in-memory. I'd rather use the
standard API here.

See 7a85d3c

cc @roop

Revert part of #213 again, because `SSL_CTX_load_verify_locations`
is just more reliable at setting up the trust store.

It looks like it's able to reference the .pem multiple times in
those cases where the root issuer of the CA is also embedded in
the file (which is the case with e.g. Let's Encrypt).

This is better than the current implementation, and I couldn't
easily find a way to do the same in-memory. I'd rather use the
standard API here.

See 7a85d3c
@keeshux keeshux added bug Something isn't working regression Used to work but doesn't anymore labels Nov 26, 2021
@keeshux keeshux added this to the 4.1.0 milestone Nov 26, 2021
@keeshux keeshux self-assigned this Nov 26, 2021
@keeshux keeshux modified the milestones: 4.1.0, 4.0.3 Nov 27, 2021
@keeshux keeshux merged commit 9c63b85 into master Nov 27, 2021
@keeshux keeshux deleted the verify-ca-from-disk branch November 27, 2021 11:32
@roop
Copy link
Contributor

roop commented Nov 30, 2021

So the CA certificate is written to disk, but the client certificate and client private key are not written to disk (used from memory instead). I think that's a good idea -- it's okay for the CA certificate to be exposed this way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working regression Used to work but doesn't anymore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants