File: generate

package info (click to toggle)
python-pyhanko-certvalidator 0.26.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,956 kB
  • sloc: python: 9,254; sh: 47; makefile: 4
file content (36 lines) | stat: -rwxr-xr-x 763 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
35
36
#!/bin/bash

rm *.ors *.crl certs/*.crt


alice_ocsp() {
  certomancer seance time-slide-ca alice interm "alice-$1.ors" \
    --at-time "$1T00:00:00+0000"
}

root_crl() {
  certomancer necronomicon time-slide-ca root "root-$1.crl" \
    --no-pem --at-time "$1T00:00:00+0000"
}

interm_crl() {
  certomancer necronomicon time-slide-ca interm "interm-$1.crl" \
    --no-pem --at-time "$1T00:00:00+0000"
}

certomancer mass-summon time-slide-ca certs --flat --no-pfx --no-pem

echo "OCSPs for Alice..."
alice_ocsp "2020-10-01"
alice_ocsp "2020-11-29"
alice_ocsp "2020-12-10"

echo "Root CRLs..."
root_crl "2020-10-01"
root_crl "2020-11-29"
root_crl "2020-12-10"

echo "Intermediate CA CRLs..."
interm_crl "2020-10-01"
interm_crl "2020-11-29"
interm_crl "2020-12-10"