@@ -76,7 +76,7 @@ func genCert(path string) error {
7676func main () {
7777 // If one of the output files already exists, assume this ran once
7878 // already for the container and don't re-run.
79- outputFile := "/tmp /root-signing-pub-rsa.pem"
79+ outputFile := "/hierarchy /root-signing-pub-rsa.pem"
8080 if loc , err := os .Stat (outputFile ); err == nil && loc .Mode ().IsRegular () {
8181 fmt .Println ("skipping certificate generation: already exists" )
8282 return
@@ -113,13 +113,13 @@ func main() {
113113 // signing key slots and IDs
114114 rsaTmpIntermediateA , err := rewriteConfig ("test/cert-ceremonies/intermediate-ceremony-rsa.yaml" , map [string ]string {
115115 "SlotID" : rsaRootKeySlot ,
116- "CertPath" : "/tmp /intermediate-cert-rsa-a.pem" ,
116+ "CertPath" : "/hierarchy /intermediate-cert-rsa-a.pem" ,
117117 "CommonName" : "CA intermediate (RSA) A" ,
118118 })
119119 cmd .FailOnError (err , "failed to rewrite RSA intermediate cert config with key ID" )
120120 ecdsaTmpIntermediateA , err := rewriteConfig ("test/cert-ceremonies/intermediate-ceremony-ecdsa.yaml" , map [string ]string {
121121 "SlotID" : ecdsaRootKeySlot ,
122- "CertPath" : "/tmp /intermediate-cert-ecdsa-a.pem" ,
122+ "CertPath" : "/hierarchy /intermediate-cert-ecdsa-a.pem" ,
123123 "CommonName" : "CA intermediate (ECDSA) A" ,
124124 })
125125 cmd .FailOnError (err , "failed to rewrite ECDSA intermediate cert config with key ID" )
@@ -134,13 +134,13 @@ func main() {
134134 // signing key slots and IDs
135135 rsaTmpIntermediateB , err := rewriteConfig ("test/cert-ceremonies/intermediate-ceremony-rsa.yaml" , map [string ]string {
136136 "SlotID" : rsaRootKeySlot ,
137- "CertPath" : "/tmp /intermediate-cert-rsa-b.pem" ,
137+ "CertPath" : "/hierarchy /intermediate-cert-rsa-b.pem" ,
138138 "CommonName" : "CA intermediate (RSA) B" ,
139139 })
140140 cmd .FailOnError (err , "failed to rewrite RSA intermediate cert config with key ID" )
141141 ecdsaTmpIntermediateB , err := rewriteConfig ("test/cert-ceremonies/intermediate-ceremony-ecdsa.yaml" , map [string ]string {
142142 "SlotID" : ecdsaRootKeySlot ,
143- "CertPath" : "/tmp /intermediate-cert-ecdsa-b.pem" ,
143+ "CertPath" : "/hierarchy /intermediate-cert-ecdsa-b.pem" ,
144144 "CommonName" : "CA intermediate (ECDSA) B" ,
145145 })
146146 cmd .FailOnError (err , "failed to rewrite ECDSA intermediate cert config with key ID" )
0 commit comments