File: README

package info (click to toggle)
python-josepy 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 476 kB
  • sloc: python: 2,573; makefile: 27
file content (19 lines) | stat: -rw-r--r-- 711 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
In order for josepy.test_util._guess_loader to work properly, make sure
to use appropriate extension for vector filenames: .pem for PEM and
.der for DER.

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

and for the certificate:

  openssl req -key rsa2047_key.pem -new -subj '/CN=example.com' -x509 -outform DER > cert.der