@@ -5,18 +5,18 @@ mkdir AS{1..5}
55
66# Create voting and root keys and (self-signed) certificates for core ASes
77pushd AS1
8- scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-11-02T15:41:22Z " --profile=sensitive-voting <( echo ' {"isd_as": "42-ffaa:1:1", "common_name": "42-ffaa:1:1 sensitive voting cert"}' ) sensitive-voting.pem sensitive-voting.key
9- scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-11-02T15:41:22Z " --profile=regular-voting <( echo ' {"isd_as": "42-ffaa:1:1", "common_name": "42-ffaa:1:1 regular voting cert"}' ) regular-voting.pem regular-voting.key
10- scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-11-02T15:41:22Z " --profile=cp-root <( echo ' {"isd_as": "42-ffaa:1:1", "common_name": "42-ffaa:1:1 cp root cert"}' ) cp-root.pem cp-root.key
8+ scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-01-01T00:00:00Z " --profile=sensitive-voting <( echo ' {"isd_as": "42-ffaa:1:1", "common_name": "42-ffaa:1:1 sensitive voting cert"}' ) sensitive-voting.pem sensitive-voting.key
9+ scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-01-01T00:00:00Z " --profile=regular-voting <( echo ' {"isd_as": "42-ffaa:1:1", "common_name": "42-ffaa:1:1 regular voting cert"}' ) regular-voting.pem regular-voting.key
10+ scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-01-01T00:00:00Z " --profile=cp-root <( echo ' {"isd_as": "42-ffaa:1:1", "common_name": "42-ffaa:1:1 cp root cert"}' ) cp-root.pem cp-root.key
1111popd
1212
1313pushd AS2
14- scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-11-02T15:41:22Z " --profile=cp-root <( echo ' {"isd_as": "42-ffaa:1:2", "common_name": "42-ffaa:1:2 cp root cert"}' ) cp-root.pem cp-root.key
14+ scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-01-01T00:00:00Z " --profile=cp-root <( echo ' {"isd_as": "42-ffaa:1:2", "common_name": "42-ffaa:1:2 cp root cert"}' ) cp-root.pem cp-root.key
1515popd
1616
1717pushd AS3
18- scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-11-02T15:41:22Z " --profile=sensitive-voting <( echo ' {"isd_as": "42-ffaa:1:3", "common_name": "42-ffaa:1:3 sensitive voting cert"}' ) sensitive-voting.pem sensitive-voting.key
19- scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-11-02T15:41:22Z " --profile=regular-voting <( echo ' {"isd_as": "42-ffaa:1:3", "common_name": "42-ffaa:1:3 regular voting cert"}' ) regular-voting.pem regular-voting.key
18+ scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-01-01T00:00:00Z " --profile=sensitive-voting <( echo ' {"isd_as": "42-ffaa:1:3", "common_name": "42-ffaa:1:3 sensitive voting cert"}' ) sensitive-voting.pem sensitive-voting.key
19+ scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-01-01T00:00:00Z " --profile=regular-voting <( echo ' {"isd_as": "42-ffaa:1:3", "common_name": "42-ffaa:1:3 regular voting cert"}' ) regular-voting.pem regular-voting.key
2020popd
2121
2222# Create the TRC (Trust Root Configuration)
@@ -34,7 +34,7 @@ cert_files = ["AS1/sensitive-voting.pem", "AS1/regular-voting.pem", "AS1/cp-root
3434
3535[validity]
3636not_before = ' 0'
37- validity = "36500d "' \
37+ validity = "3650d "' \
3838> trc-B1-S1-pld.tmpl
3939
4040scion-pki trc payload --out=tmp/ISD42-B1-S1.pld.der --template trc-B1-S1-pld.tmpl
@@ -51,18 +51,18 @@ rm tmp -r
5151
5252# Create CA key and certificate for issuing ASes
5353pushd AS1
54- scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-11-02T15:41:22Z " --profile=cp-ca <( echo ' {"isd_as": "42-ffaa:1:1", "common_name": "42-ffaa:1:1 CA cert"}' ) cp-ca.pem cp-ca.key --ca cp-root.pem --ca-key cp-root.key
54+ scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-01-01T00:00:00Z " --profile=cp-ca <( echo ' {"isd_as": "42-ffaa:1:1", "common_name": "42-ffaa:1:1 CA cert"}' ) cp-ca.pem cp-ca.key --ca cp-root.pem --ca-key cp-root.key
5555popd
5656pushd AS2
57- scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-11-02T15:41:22Z " --profile=cp-ca <( echo ' {"isd_as": "42-ffaa:1:2", "common_name": "42-ffaa:1:2 CA cert"}' ) cp-ca.pem cp-ca.key --ca cp-root.pem --ca-key cp-root.key
57+ scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-01-01T00:00:00Z " --profile=cp-ca <( echo ' {"isd_as": "42-ffaa:1:2", "common_name": "42-ffaa:1:2 CA cert"}' ) cp-ca.pem cp-ca.key --ca cp-root.pem --ca-key cp-root.key
5858popd
5959
6060# Create AS key and certificate chains
61- scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-11-02T15:41:22Z " --profile=cp-as <( echo ' {"isd_as": "42-ffaa:1:1", "common_name": "42-ffaa:1:1 AS cert"}' ) AS1/cp-as.pem AS1/cp-as.key --ca AS1/cp-ca.pem --ca-key AS1/cp-ca.key --bundle
62- scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-11-02T15:41:22Z " --profile=cp-as <( echo ' {"isd_as": "42-ffaa:1:2", "common_name": "42-ffaa:1:2 AS cert"}' ) AS2/cp-as.pem AS2/cp-as.key --ca AS2/cp-ca.pem --ca-key AS2/cp-ca.key --bundle
63- scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-11-02T15:41:22Z " --profile=cp-as <( echo ' {"isd_as": "42-ffaa:1:3", "common_name": "42-ffaa:1:3 AS cert"}' ) AS3/cp-as.pem AS3/cp-as.key --ca AS1/cp-ca.pem --ca-key AS1/cp-ca.key --bundle
64- scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-11-02T15:41:22Z " --profile=cp-as <( echo ' {"isd_as": "42-ffaa:1:4", "common_name": "42-ffaa:1:4 AS cert"}' ) AS4/cp-as.pem AS4/cp-as.key --ca AS1/cp-ca.pem --ca-key AS1/cp-ca.key --bundle
65- scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-11-02T15:41:22Z " --profile=cp-as <( echo ' {"isd_as": "42-ffaa:1:5", "common_name": "42-ffaa:1:5 AS cert"}' ) AS5/cp-as.pem AS5/cp-as.key --ca AS2/cp-ca.pem --ca-key AS2/cp-ca.key --bundle
61+ scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-01-01T00:00:00Z " --profile=cp-as <( echo ' {"isd_as": "42-ffaa:1:1", "common_name": "42-ffaa:1:1 AS cert"}' ) AS1/cp-as.pem AS1/cp-as.key --ca AS1/cp-ca.pem --ca-key AS1/cp-ca.key --bundle
62+ scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-01-01T00:00:00Z " --profile=cp-as <( echo ' {"isd_as": "42-ffaa:1:2", "common_name": "42-ffaa:1:2 AS cert"}' ) AS2/cp-as.pem AS2/cp-as.key --ca AS2/cp-ca.pem --ca-key AS2/cp-ca.key --bundle
63+ scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-01-01T00:00:00Z " --profile=cp-as <( echo ' {"isd_as": "42-ffaa:1:3", "common_name": "42-ffaa:1:3 AS cert"}' ) AS3/cp-as.pem AS3/cp-as.key --ca AS1/cp-ca.pem --ca-key AS1/cp-ca.key --bundle
64+ scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-01-01T00:00:00Z " --profile=cp-as <( echo ' {"isd_as": "42-ffaa:1:4", "common_name": "42-ffaa:1:4 AS cert"}' ) AS4/cp-as.pem AS4/cp-as.key --ca AS1/cp-ca.pem --ca-key AS1/cp-ca.key --bundle
65+ scion-pki certificate create --not-before=" 1970-01-01T00:00:00Z" --not-after=" 2124-01-01T00:00:00Z " --profile=cp-as <( echo ' {"isd_as": "42-ffaa:1:5", "common_name": "42-ffaa:1:5 AS cert"}' ) AS5/cp-as.pem AS5/cp-as.key --ca AS2/cp-ca.pem --ca-key AS2/cp-ca.key --bundle
6666
6767for i in {1..5}
6868do
0 commit comments