diff options
author | Alex Aubuchon <alex@aub.dev> | 2019-05-28 11:39:24 -0700 |
---|---|---|
committer | Ali Ijaz Sheikh <ofrobots@google.com> | 2019-06-05 11:37:29 -0700 |
commit | 8091df065ee1cdb8580a4a263f97f0b0750ca1f6 (patch) | |
tree | 928443df96c69cccbc165b6d83778af881b90e97 /test/fixtures/keys | |
parent | 52b6d393af3bbbd26245b92380bb641be6f10555 (diff) | |
download | android-node-v8-8091df065ee1cdb8580a4a263f97f0b0750ca1f6.tar.gz android-node-v8-8091df065ee1cdb8580a4a263f97f0b0750ca1f6.tar.bz2 android-node-v8-8091df065ee1cdb8580a4a263f97f0b0750ca1f6.zip |
test: move ed25519 keypair to fixtures/keys/
PR-URL: https://github.com/nodejs/node/pull/27962
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/fixtures/keys')
-rw-r--r-- | test/fixtures/keys/.gitattributes | 4 | ||||
-rw-r--r-- | test/fixtures/keys/Makefile | 8 | ||||
-rw-r--r-- | test/fixtures/keys/ed25519_private.pem | 3 | ||||
-rw-r--r-- | test/fixtures/keys/ed25519_public.pem | 3 |
4 files changed, 18 insertions, 0 deletions
diff --git a/test/fixtures/keys/.gitattributes b/test/fixtures/keys/.gitattributes new file mode 100644 index 0000000000..87a4fb14e4 --- /dev/null +++ b/test/fixtures/keys/.gitattributes @@ -0,0 +1,4 @@ +* -text + +Makefile text +*.cnf text diff --git a/test/fixtures/keys/Makefile b/test/fixtures/keys/Makefile index 81fe36a813..72a0cb5718 100644 --- a/test/fixtures/keys/Makefile +++ b/test/fixtures/keys/Makefile @@ -43,6 +43,8 @@ all: \ rsa_pss_public_2048.pem \ rsa_pss_public_2048_sha256_sha256_16.pem \ rsa_pss_public_2048_sha512_sha256_20.pem \ + ed25519_private.pem \ + ed25519_public.pem \ # # Create Certificate Authority: ca1 @@ -598,6 +600,12 @@ rsa_pss_public_2048_sha256_sha256_16.pem: rsa_pss_private_2048_sha256_sha256_16. rsa_pss_public_2048_sha512_sha256_20.pem: rsa_pss_private_2048_sha512_sha256_20.pem openssl pkey -in rsa_pss_private_2048_sha512_sha256_20.pem -pubout -out rsa_pss_public_2048_sha512_sha256_20.pem +ed25519_private.pem: + openssl genpkey -algorithm ED25519 -out ed25519_private.pem + +ed25519_public.pem: ed25519_private.pem + openssl pkey -in ed25519_private.pem -pubout -out ed25519_public.pem + clean: rm -f *.pfx *.pem *.srl ca2-database.txt ca2-serial fake-startcom-root-serial *.print *.old fake-startcom-root-issued-certs/*.pem @> fake-startcom-root-database.txt diff --git a/test/fixtures/keys/ed25519_private.pem b/test/fixtures/keys/ed25519_private.pem new file mode 100644 index 0000000000..f837457cbd --- /dev/null +++ b/test/fixtures/keys/ed25519_private.pem @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +MC4CAQAwBQYDK2VwBCIEIMFSujN0jIUIdzSvuxka0lfgVVkMdRTuaVvIYUHrvzXQ +-----END PRIVATE KEY----- diff --git a/test/fixtures/keys/ed25519_public.pem b/test/fixtures/keys/ed25519_public.pem new file mode 100644 index 0000000000..4127a471ba --- /dev/null +++ b/test/fixtures/keys/ed25519_public.pem @@ -0,0 +1,3 @@ +-----BEGIN PUBLIC KEY----- +MCowBQYDK2VwAyEAK1wIouqnuiA04b3WrMa+xKIKIpfHetNZRv3h9fBf768= +-----END PUBLIC KEY----- |