Lines Matching refs:Certificate
232 // Putting a certificate as a root directly should work as a
245 // Putting a certificate as a root directly should not skip
333 func certificateFromPEM(pemBytes string) (*Certificate, error) {
451 func chainToDebugString(chain []*Certificate) string {
466 const geoTrustRoot = `-----BEGIN CERTIFICATE-----
485 -----END CERTIFICATE-----
488 const giag2Intermediate = `-----BEGIN CERTIFICATE-----
511 -----END CERTIFICATE-----
514 const googleLeaf = `-----BEGIN CERTIFICATE-----
539 -----END CERTIFICATE-----
543 // algorithm in the certificate contains a nonsense OID.
544 const googleLeafWithInvalidHash = `-----BEGIN CERTIFICATE-----
569 -----END CERTIFICATE-----
572 const dnssecExpLeaf = `-----BEGIN CERTIFICATE-----
610 -----END CERTIFICATE-----`
612 const startComIntermediate = `-----BEGIN CERTIFICATE-----
647 -----END CERTIFICATE-----`
649 const startComRoot = `-----BEGIN CERTIFICATE-----
692 -----END CERTIFICATE-----`
694 const smimeLeaf = `-----BEGIN CERTIFICATE-----
722 -----END CERTIFICATE-----`
724 const smimeIntermediate = `-----BEGIN CERTIFICATE-----
747 -----END CERTIFICATE-----`
749 var megaLeaf = `-----BEGIN CERTIFICATE-----
778 -----END CERTIFICATE-----`
780 var comodoIntermediate1 = `-----BEGIN CERTIFICATE-----
808 -----END CERTIFICATE-----`
810 var comodoRoot = `-----BEGIN CERTIFICATE-----
834 -----END CERTIFICATE-----`
836 var nameConstraintsLeaf = `-----BEGIN CERTIFICATE-----
876 -----END CERTIFICATE-----`
878 var nameConstraintsIntermediate1 = `-----BEGIN CERTIFICATE-----
950 -----END CERTIFICATE-----`
952 var nameConstraintsIntermediate2 = `-----BEGIN CERTIFICATE-----
977 -----END CERTIFICATE-----`
979 var globalSignRoot = `-----BEGIN CERTIFICATE-----
999 -----END CERTIFICATE-----`
1001 var moipLeafCert = `-----BEGIN CERTIFICATE-----
1036 -----END CERTIFICATE-----`
1038 var comodoIntermediateSHA384 = `-----BEGIN CERTIFICATE-----
1072 -----END CERTIFICATE-----`
1074 const comodoRSAAuthority = `-----BEGIN CERTIFICATE-----
1105 -----END CERTIFICATE-----`
1107 const addTrustRoot = `-----BEGIN CERTIFICATE-----
1131 -----END CERTIFICATE-----`
1133 const selfSigned = `-----BEGIN CERTIFICATE-----
1150 -----END CERTIFICATE-----`
1153 Certificate:
1179 Certificate Sign
1195 -----BEGIN CERTIFICATE-----
1208 -----END CERTIFICATE-----`
1211 Certificate:
1256 -----BEGIN CERTIFICATE-----
1269 -----END CERTIFICATE-----
1276 {selfSignedWithCommonName, "x509: certificate signed by unknown authority (possibly because of \"empty\" while trying to verify candidate authority certificate \"test\")"},
1277 {selfSignedNoCommonNameWithOrgName, "x509: certificate signed by unknown authority (possibly because of \"empty\" while trying to verify candidate authority certificate \"ca\")"},
1278 {selfSignedNoCommonNameNoOrgName, "x509: certificate signed by unknown authority (possibly because of \"empty\" while trying to verify candidate authority certificate \"serial:0\")"},
1289 t.Errorf("#%d: Unable to parse certificate -> %s", i, err)
1327 const selfSignedWithCommonName = `-----BEGIN CERTIFICATE-----
1345 -----END CERTIFICATE-----`
1346 const selfSignedNoCommonNameWithOrgName = `-----BEGIN CERTIFICATE-----
1363 -----END CERTIFICATE-----`
1364 const selfSignedNoCommonNameNoOrgName = `-----BEGIN CERTIFICATE-----
1381 -----END CERTIFICATE-----`