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

Add support for ED25519 CA cert key #555

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

ErikPelli
Copy link
Collaborator

Currently TLSConfigFromCA() returns an error if the specified custom CA certificate uses ED25519 as the private key.
With this pull request, I add the support for it.
Compared to rsa and ecdsa, its usage among the standard library doesn't use a pointer and it has been made clear in the x509 documentation: https://pkg.go.dev/crypto/x509#MarshalPKCS8PrivateKey (it explicitly says not a pointer)

@elazarl elazarl merged commit 60626ae into elazarl:master Dec 9, 2024
@elazarl
Copy link
Owner

elazarl commented Dec 9, 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