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

Support certificate chain #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

bartbutenaers
Copy link
Owner

Some people get this error (when they try to get a valid certificate from the keystore):

image

Following this issue, the Length of buffer does not match length of ASN.1 sequence is caused when a certificate chain is used instead of only the server certificate.

And indeed in one of the cases that I examined, a certificate chain was being used:

image

So instead of sending a single certificate in the output message, I need to split the pem file based on newlines. Then I can send the certificate chain as an array in the output message:

image

The R3 certificate is the intermediate certificate chain from Letsencrypt, as you can see here.

@bartbutenaers bartbutenaers added the bug Something isn't working label Dec 14, 2021
@bartbutenaers bartbutenaers self-assigned this Dec 14, 2021
@bartbutenaers bartbutenaers mentioned this pull request Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant