@ -416,7 +416,7 @@ Settings:
organization : [ "Acme CAs Ltd." ]
validity - years :
root : 20
intermediary : 5
subord ina te: 5
url - patterns :
ocsp : http : //ocsp.example.org/
crl : http : //crl.example.org/%s
@ -473,7 +473,7 @@ Settings:
organization : [ "Acme CAs Ltd." ]
validity - years :
root : 20
intermediary : 5
subord ina te: 5
url - patterns :
ocsp : http : //ocsp.example.org/
crl : http : //crl.example.org/%s.crl
@ -496,7 +496,7 @@ Settings:
organization : [ "Acme CAs Ltd." ]
validity - years :
root : 20
intermediary : 5
subord ina te: 5
url - patterns :
ocsp : http : //ocsp.example.org/
crl : http : //crl.example.org/%s.crl
@ -534,7 +534,7 @@ Settings:
organization : [ "Acme CAs Ltd." ]
validity - years :
root : 20
intermediary : 5
subord ina te: 5
url - patterns :
ocsp : http : //ocsp.example.org/
crl : http : //crl.example.org/%s.crl
@ -582,10 +582,10 @@ func TestSignerConfig_RootCAs(t *testing.T) {
assert . Equal ( t , roots , [ ] string { "root" } )
}
func TestSignerConfig_ Intermediary CAs( t * testing . T ) {
func TestSignerConfig_ Subordinate CAs( t * testing . T ) {
sc := loadSignerConfig ( t )
cAs := sc . Intermediary CAs( )
cAs := sc . Subordinate CAs( )
assert . ElementsMatch ( t , cAs , [ ] string { "sub1" , "sub2" } )
}
@ -659,7 +659,7 @@ Settings:
organization : [ "Acme CAs Ltd." ]
validity - years :
root : 20
intermediary : 5
subord ina te: 5
url - patterns :
ocsp : http : //ocsp.example.org/%s
crl : http : //crl.example.org/%s.crl
@ -715,7 +715,7 @@ func TestSettings_UnmarshalYAML(t *testing.T) {
yaml : `
validity - years :
root : 10
intermediary : 5
subord ina te: 5
url - patterns :
ocsp : http : //ocsp.example.org/
crl : http : //crl.example.org/%s.crl
@ -732,7 +732,7 @@ url-patterns:
crl : http : //crl.example.org/%s.crl
issuer : http : //issuer.example.org/%s.crt
` ,
errMsg : "invalid Settings you must specify validity years for 'root' and ' intermediary '",
errMsg : "invalid Settings you must specify validity years for 'root' and ' subord ina te'",
} ,
"missing url-patterns" : {
yaml : `
@ -740,7 +740,7 @@ organization:
organization : [ "Acme CAs Ltd." ]
validity - years :
root : 10
intermediary : 5
subord ina te: 5
` ,
errMsg : "invalid Settings" ,
} ,
@ -750,14 +750,14 @@ organization:
organization : [ "Acme CAs Ltd." ]
validity - years :
root : 5
intermediary : 10
subord ina te: 10
url - patterns :
ocsp : http : //ocsp.example.org/
crl : http : //crl.example.org/%s.crl
issuer : http : //issuer.example.org/%s.crt
` ,
errMsg : "invalid Settings validity of root CA certificates must be equal or greater than" +
" those of intermediary CA certificates",
" those of subord ina te CA certificates",
} ,
"no OCSP pattern" : {
yaml : `
@ -765,7 +765,7 @@ organization:
organization : [ "Acme CAs Ltd." ]
validity - years :
root : 10
intermediary : 5
subord ina te: 5
url - patterns :
crl : http : //crl.example.org/%s.crl
issuer : http : //issuer.example.org/%s.crt
@ -778,7 +778,7 @@ organization:
organization : [ "Acme CAs Ltd." ]
validity - years :
root : 10
intermediary : 5
subord ina te: 5
url - patterns :
ocsp : http : //ocsp.example.org/%s_%s
crl : http : //crl.example.org/%s.crl
@ -792,7 +792,7 @@ organization:
organization : [ "Acme CAs Ltd." ]
validity - years :
root : 10
intermediary : 5
subord ina te: 5
url - patterns :
ocsp : http : //ocsp.example.org/
issuer : http : //issuer.example.org/%s.crt
@ -805,7 +805,7 @@ organization:
organization : [ "Acme CAs Ltd." ]
validity - years :
root : 10
intermediary : 5
subord ina te: 5
url - patterns :
ocsp : http : //ocsp.example.org/
crl : http : //crl.example.org/
@ -819,7 +819,7 @@ organization:
organization : [ "Acme CAs Ltd." ]
validity - years :
root : 10
intermediary : 5
subord ina te: 5
url - patterns :
crl : http : //crl.example.org/%s.crl
ocsp : http : //ocsp.example.org/
@ -832,7 +832,7 @@ organization:
organization : [ "Acme CAs Ltd." ]
validity - years :
root : 10
intermediary : 5
subord ina te: 5
url - patterns :
ocsp : http : //ocsp.example.org/
crl : http : //crl.example.org/%s.crl