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 certificates #86

Merged
merged 1 commit into from
Jan 19, 2019
Merged

Conversation

shahn
Copy link
Contributor

@shahn shahn commented Jan 13, 2019

This adds support for verification of ed25519 certificates according to
RFC 8410. Implements #49.

The test certificate was generated using OpenSSL 1.1.1a, using the
following commands (CA.pl is distributed with OpenSSL):

CA:

openssl genpkey -algorithm ed25519 -outform pem -out root_key.pem
openssl req -new -x509 -days 9999 -extensions v3_ca -key root_key.pem
-inform pem -outform pem -out root_ed25519.pem
echo root_ed25519.pem | CA.pl -newca

Client:

openssl genpkey -algorithm ed25519 -outform pem -out client_key.pem
openssl req -new -key client_key.pem -inform pem -outform pem
-out client_ed25519_csr.pem
openssl ca -keyfile ./root_key.pem -days 999 -notext -in
client_ed25519_csr.pem -out client_ed25519.pem

Copy link
Owner

@briansmith briansmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please add the statement about the license from https://github.com/briansmith/ring#contributing to the commit message and I'll merge this.

tests/integration.rs Outdated Show resolved Hide resolved
This adds support for verification of ed25519 certificates according to
RFC 8410. Implements briansmith#49.

The test certificate was generated using OpenSSL 1.1.1a, using the
following commands (CA.pl is distributed with OpenSSL):

openssl genpkey -algorithm ed25519 -outform pem -out root_key.pem
openssl req -new -x509 -days 9999 -extensions v3_ca -key root_key.pem \
-inform pem -outform pem -out root_ed25519.pem
echo root_ed25519.pem | CA.pl -newca

openssl genpkey -algorithm ed25519 -outform pem -out client_key.pem
openssl req -new -key client_key.pem -inform pem -outform pem \
-out client_ed25519_csr.pem
openssl ca -keyfile ./root_key.pem -days 999 -notext -in \
client_ed25519_csr.pem -out client_ed25519.pem

I agree to license my contributions to each file under the terms given
at the top of each file I changed.
@shahn
Copy link
Contributor Author

shahn commented Jan 17, 2019

Thanks, addressed review & pushed new commit with altered commit message.

@briansmith briansmith merged commit d139e98 into briansmith:master Jan 19, 2019
@briansmith
Copy link
Owner

Thanks! Merged!

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