Skip to content

Commit

Permalink
Update testdata/README with commands to generate EC keys
Browse files Browse the repository at this point in the history
  • Loading branch information
jannispinter committed Dec 16, 2020
1 parent 2c3cabe commit 2f8bebe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/josepy/testdata/README
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The following command has been used to generate test keys:

for x in 256 512 1024 2048; do openssl genrsa -out rsa${k}_key.pem $k; done

openssl ecparam -name prime256v1 -genkey -out ec_p256_key.pem
openssl ecparam -name secp384r1 -genkey -out ec_p384_key.pem
openssl ecparam -name secp521r1 -genkey -out ec_p521_key.pem

and for the CSR:

openssl req -key rsa2048_key.pem -new -subj '/CN=example.com' -outform DER > csr.der
Expand Down

0 comments on commit 2f8bebe

Please sign in to comment.