Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/certificate/README
blob: 05184e09f16641711589354cc72f1d8705b36796 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
This directory contains keys and certificates that are used in the
python-pskc test suite for checking XML signatures.

The CA key and certificate were generated with:

openssl req \
  -x509 -newkey rsa:2048 -nodes \
  -keyout ca-key.pem -out ca-certificate.pem \
  -days 3650 -subj '/C=NL/O=python-pskc/CN=Test CA'

The key used for signing the PSKC files and corresponding self-signed
certificate were generated with:

openssl req \
  -x509 -newkey rsa:2048 -nodes \
  -keyout key.pem -out ss-certificate.pem \
  -days 3650 -subj '/C=NL/O=python-pskc/CN=Test signing'

The certificate signed by the CA key was generated with:

openssl req \
  -new \
  -key key.pem -out request.pem \
  -subj '/C=NL/O=python-pskc/CN=Test signing'

openssl x509 \
  -req \
  -in request.pem -CA ca-certificate.pem -CAkey ca-key.pem -out certificate.pem \
  -days 3650 -set_serial 42