test: move x25519 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
6a0513817b
commit
e15a09d9dc
8
test/fixtures/keys/Makefile
vendored
8
test/fixtures/keys/Makefile
vendored
@ -45,6 +45,8 @@ all: \
|
|||||||
rsa_pss_public_2048_sha512_sha256_20.pem \
|
rsa_pss_public_2048_sha512_sha256_20.pem \
|
||||||
ed25519_private.pem \
|
ed25519_private.pem \
|
||||||
ed25519_public.pem \
|
ed25519_public.pem \
|
||||||
|
x25519_private.pem \
|
||||||
|
x25519_public.pem \
|
||||||
|
|
||||||
#
|
#
|
||||||
# Create Certificate Authority: ca1
|
# Create Certificate Authority: ca1
|
||||||
@ -606,6 +608,12 @@ ed25519_private.pem:
|
|||||||
ed25519_public.pem: ed25519_private.pem
|
ed25519_public.pem: ed25519_private.pem
|
||||||
openssl pkey -in ed25519_private.pem -pubout -out ed25519_public.pem
|
openssl pkey -in ed25519_private.pem -pubout -out ed25519_public.pem
|
||||||
|
|
||||||
|
x25519_private.pem:
|
||||||
|
openssl genpkey -algorithm x25519 -out x25519_private.pem
|
||||||
|
|
||||||
|
x25519_public.pem: x25519_private.pem
|
||||||
|
openssl pkey -in x25519_private.pem -pubout -out x25519_public.pem
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.pfx *.pem *.srl ca2-database.txt ca2-serial fake-startcom-root-serial *.print *.old fake-startcom-root-issued-certs/*.pem
|
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
|
@> fake-startcom-root-database.txt
|
||||||
|
3
test/fixtures/keys/x25519_private.pem
vendored
Normal file
3
test/fixtures/keys/x25519_private.pem
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
-----BEGIN PRIVATE KEY-----
|
||||||
|
MC4CAQAwBQYDK2VuBCIEIJi/yFpueUawC1BkXyWM8ONIBGFjL7UZHrD/Zo/KPDpn
|
||||||
|
-----END PRIVATE KEY-----
|
3
test/fixtures/keys/x25519_public.pem
vendored
Normal file
3
test/fixtures/keys/x25519_public.pem
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
-----BEGIN PUBLIC KEY-----
|
||||||
|
MCowBQYDK2VuAyEAaSb8Q+RndwfNnPeOYGYPDUN3uhAPnMLzXyfi+mqfhig=
|
||||||
|
-----END PUBLIC KEY-----
|
3
test/fixtures/test_x25519_privkey.pem
vendored
3
test/fixtures/test_x25519_privkey.pem
vendored
@ -1,3 +0,0 @@
|
|||||||
-----BEGIN PRIVATE KEY-----
|
|
||||||
MC4CAQAwBQYDK2VuBCIEILD/13Y5R/tmcCjZVSooIcpfGvZxf+qt6dMu5FYaOC1a
|
|
||||||
-----END PRIVATE KEY-----
|
|
3
test/fixtures/test_x25519_pubkey.pem
vendored
3
test/fixtures/test_x25519_pubkey.pem
vendored
@ -1,3 +0,0 @@
|
|||||||
-----BEGIN PUBLIC KEY-----
|
|
||||||
MCowBQYDK2VuAyEAYHCXnz085FKclfnx+gdiGXAyy7BhJjx0pxyE4wbXF0A=
|
|
||||||
-----END PUBLIC KEY-----
|
|
@ -209,8 +209,8 @@ const privateDsa = fixtures.readKey('dsa_private_encrypted_1025.pem',
|
|||||||
{ private: fixtures.readSync('test_ed448_privkey.pem', 'ascii'),
|
{ private: fixtures.readSync('test_ed448_privkey.pem', 'ascii'),
|
||||||
public: fixtures.readSync('test_ed448_pubkey.pem', 'ascii'),
|
public: fixtures.readSync('test_ed448_pubkey.pem', 'ascii'),
|
||||||
keyType: 'ed448' },
|
keyType: 'ed448' },
|
||||||
{ private: fixtures.readSync('test_x25519_privkey.pem', 'ascii'),
|
{ private: fixtures.readKey('x25519_private.pem', 'ascii'),
|
||||||
public: fixtures.readSync('test_x25519_pubkey.pem', 'ascii'),
|
public: fixtures.readKey('x25519_public.pem', 'ascii'),
|
||||||
keyType: 'x25519' },
|
keyType: 'x25519' },
|
||||||
{ private: fixtures.readSync('test_x448_privkey.pem', 'ascii'),
|
{ private: fixtures.readSync('test_x448_privkey.pem', 'ascii'),
|
||||||
public: fixtures.readSync('test_x448_pubkey.pem', 'ascii'),
|
public: fixtures.readSync('test_x448_pubkey.pem', 'ascii'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user