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>
This commit is contained in:
parent
ba7551cad8
commit
6a0513817b
4
test/fixtures/keys/.gitattributes
vendored
Normal file
4
test/fixtures/keys/.gitattributes
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
* -text
|
||||
|
||||
Makefile text
|
||||
*.cnf text
|
8
test/fixtures/keys/Makefile
vendored
8
test/fixtures/keys/Makefile
vendored
@ -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
|
||||
|
3
test/fixtures/keys/ed25519_private.pem
vendored
Normal file
3
test/fixtures/keys/ed25519_private.pem
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
MC4CAQAwBQYDK2VwBCIEIMFSujN0jIUIdzSvuxka0lfgVVkMdRTuaVvIYUHrvzXQ
|
||||
-----END PRIVATE KEY-----
|
3
test/fixtures/keys/ed25519_public.pem
vendored
Normal file
3
test/fixtures/keys/ed25519_public.pem
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
-----BEGIN PUBLIC KEY-----
|
||||
MCowBQYDK2VwAyEAK1wIouqnuiA04b3WrMa+xKIKIpfHetNZRv3h9fBf768=
|
||||
-----END PUBLIC KEY-----
|
3
test/fixtures/test_ed25519_privkey.pem
vendored
3
test/fixtures/test_ed25519_privkey.pem
vendored
@ -1,3 +0,0 @@
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
MC4CAQAwBQYDK2VwBCIEIHXLsXm1lsq5HtyqJwQyFmpfEluuf0KOqP6DqMgGxxDL
|
||||
-----END PRIVATE KEY-----
|
3
test/fixtures/test_ed25519_pubkey.pem
vendored
3
test/fixtures/test_ed25519_pubkey.pem
vendored
@ -1,3 +0,0 @@
|
||||
-----BEGIN PUBLIC KEY-----
|
||||
MCowBQYDK2VwAyEAEXRYV3v5ucrHVR3mKqyPXxXqU34lASwc7Y7MoOvaqcs=
|
||||
-----END PUBLIC KEY-----
|
@ -203,8 +203,8 @@ const privateDsa = fixtures.readKey('dsa_private_encrypted_1025.pem',
|
||||
}
|
||||
|
||||
[
|
||||
{ private: fixtures.readSync('test_ed25519_privkey.pem', 'ascii'),
|
||||
public: fixtures.readSync('test_ed25519_pubkey.pem', 'ascii'),
|
||||
{ private: fixtures.readKey('ed25519_private.pem', 'ascii'),
|
||||
public: fixtures.readKey('ed25519_public.pem', 'ascii'),
|
||||
keyType: 'ed25519' },
|
||||
{ private: fixtures.readSync('test_ed448_privkey.pem', 'ascii'),
|
||||
public: fixtures.readSync('test_ed448_pubkey.pem', 'ascii'),
|
||||
|
@ -418,8 +418,8 @@ common.expectsError(
|
||||
}
|
||||
|
||||
[
|
||||
{ private: fixtures.readSync('test_ed25519_privkey.pem', 'ascii'),
|
||||
public: fixtures.readSync('test_ed25519_pubkey.pem', 'ascii'),
|
||||
{ private: fixtures.readKey('ed25519_private.pem', 'ascii'),
|
||||
public: fixtures.readKey('ed25519_public.pem', 'ascii'),
|
||||
algo: null,
|
||||
sigLen: 64 },
|
||||
{ private: fixtures.readSync('test_ed448_privkey.pem', 'ascii'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user