Lines Matching refs:Cert
116 rsaCertificateFile = "cert.pem"
153 cert *Certificate
159 cert: &rsaCertificate,
165 cert: &rsa1024Certificate,
171 cert: &rsaChainCertificate,
177 cert: &ecdsaP224Certificate,
183 cert: &ecdsaP256Certificate,
189 cert: &ecdsaP384Certificate,
195 cert: &ecdsaP521Certificate,
201 cert: &ed25519Certificate,
218 cert, err := LoadX509KeyPair(path.Join(*resourceDir, testCerts[i].certFile), path.Join(*resourceDir, testCerts[i].keyFile))
222 cert.OCSPStaple = testOCSPResponse
223 cert.SignedCertificateTimestampList = testSCTList
224 *testCerts[i].cert = cert
389 for _, cert := range testCerts {
390 if cert.id == t {
391 return *cert.cert
398 for _, cert := range testCerts {
399 if cert.id == t {
400 return cert.certFile
407 for _, cert := range testCerts {
408 if cert.id == t {
409 return cert.keyFile
871 for i, cert := range connState.PeerCertificates {
872 if !bytes.Equal(cert.Raw, test.expectPeerCertificate.Certificate[i]) {
1233 flags = append(flags, "-cert-file")
2295 flags: []string{"-fail-cert-callback"},
2306 flags: []string{"-fail-cert-callback"},
2317 flags: []string{"-fail-cert-callback"},
2328 flags: []string{"-fail-cert-callback"},
3240 cert := rsaCertificate
3242 cert.Certificate = append(cert.Certificate, cert.Certificate[0])
3247 Certificates: []Certificate{cert},
3254 Certificates: []Certificate{cert},
3262 Certificates: []Certificate{cert},
3264 flags: []string{"-max-cert-list", "16384"},
3272 Certificates: []Certificate{cert},
3274 flags: []string{"-max-cert-list", "16384"},
3307 var cert Certificate
3311 cert = ecdsaP256Certificate
3315 cert = rsaCertificate
3365 Certificates: []Certificate{cert},
3389 Certificates: []Certificate{cert},
3416 Certificates: []Certificate{cert},
3439 Certificates: []Certificate{cert},
3623 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
3637 "-cert-file", path.Join(*resourceDir, ecdsaP256CertificateFile),
3651 "-cert-file", path.Join(*resourceDir, ed25519CertificateFile),
3895 // Add a dummy cert pool to stress certificate authority parsing.
3897 for _, cert := range []Certificate{rsaCertificate, rsa1024Certificate} {
3898 cert, err := x509.ParseCertificate(cert.Certificate[0])
3902 certPool.AddCert(cert)
3917 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
3951 "-cert-file", path.Join(*resourceDir, ecdsaP256CertificateFile),
4092 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
4110 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
4127 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
4667 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
4679 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
4691 "-cert-file", path.Join(*resourceDir, ecdsaP256CertificateFile),
4703 "-cert-file", path.Join(*resourceDir, ecdsaP256CertificateFile),
4714 flags: []string{"-use-old-client-cert-callback"},
4723 flags: []string{"-use-old-client-cert-callback"},
4733 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
4735 "-use-old-client-cert-callback",
4746 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
4748 "-use-old-client-cert-callback",
4779 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
4791 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
4803 "-cert-file", path.Join(*resourceDir, ecdsaP256CertificateFile),
4815 "-cert-file", path.Join(*resourceDir, ed25519CertificateFile),
7327 "-enable-signed-cert-timestamps",
7328 "-expect-signed-cert-timestamps",
7349 "-enable-signed-cert-timestamps",
7350 "-expect-signed-cert-timestamps",
7363 "-signed-cert-timestamps",
7370 emptySCTListCert := *testCerts[0].cert
7382 "-enable-signed-cert-timestamps",
7388 emptySCTCert := *testCerts[0].cert
7400 "-enable-signed-cert-timestamps",
7420 "-signed-cert-timestamps",
7598 "-enable-signed-cert-timestamps",
7599 "-expect-signed-cert-timestamps",
7617 "-cert-file", path.Join(*resourceDir, rsaChainCertificateFile),
7621 "-signed-cert-timestamps",
7634 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
7638 "-signed-cert-timestamps",
7653 "-enable-signed-cert-timestamps",
7664 "-signed-cert-timestamps",
8660 "-enable-signed-cert-timestamps",
8661 "-expect-signed-cert-timestamps",
8713 cert testCert
8778 if ver.version >= VersionTLS13 && alg.cert == testCertECDSAP224 {
8812 "-cert-file", path.Join(*resourceDir, getShimCertificate(alg.cert)),
8813 "-key-file", path.Join(*resourceDir, getShimKey(alg.cert)),
8828 Certificates: []Certificate{getRunnerCertificate(alg.cert)},
8866 "-cert-file", path.Join(*resourceDir, getShimCertificate(alg.cert)),
8867 "-key-file", path.Join(*resourceDir, getShimKey(alg.cert)),
8881 Certificates: []Certificate{getRunnerCertificate(alg.cert)},
8912 Certificates: []Certificate{getRunnerCertificate(alg.cert)},
8933 Certificates: []Certificate{getRunnerCertificate(alg.cert)},
8960 "-cert-file", path.Join(*resourceDir, getShimCertificate(alg.cert)),
8961 "-key-file", path.Join(*resourceDir, getShimKey(alg.cert)),
8978 "-cert-file", path.Join(*resourceDir, getShimCertificate(alg.cert)),
8979 "-key-file", path.Join(*resourceDir, getShimKey(alg.cert)),
9007 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
9027 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
9050 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
9069 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
9192 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
9210 "-cert-file", path.Join(*resourceDir, ecdsaP256CertificateFile),
9246 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
9267 "-cert-file", path.Join(*resourceDir, ecdsaP256CertificateFile),
9288 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
9379 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
9397 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
9415 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
9432 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
9453 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
9471 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
9548 "-cert-file", path.Join(*resourceDir, ecdsaP256CertificateFile),
9566 "-cert-file", path.Join(*resourceDir, rsa1024CertificateFile),
9622 "-cert-file", path.Join(*resourceDir, ed25519CertificateFile),
9654 "-cert-file", path.Join(*resourceDir, ed25519CertificateFile),
12880 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
12898 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
12914 "-cert-file", path.Join(*resourceDir, rsaCertificateFile),
13003 "-on-initial-expect-peer-cert-file", path.Join(*resourceDir, rsaCertificateFile),
13004 "-on-resume-expect-peer-cert-file", path.Join(*resourceDir, rsaCertificateFile),
13005 "-on-retry-expect-peer-cert-file", path.Join(*resourceDir, ecdsaP256CertificateFile),
13661 "-cert-file", path.Join(*resourceDir, rsaChainCertificateFile),
13682 "-cert-file", path.Join(*resourceDir, rsaChainCertificateFile),
13962 "-cert-file", path.Join(*resourceDir, rsaChainCertificateFile),
13964 "-expect-peer-cert-file", path.Join(*resourceDir, rsaChainCertificateFile),
13978 "-cert-file", path.Join(*resourceDir, rsaChainCertificateFile),
13981 "-expect-peer-cert-file", path.Join(*resourceDir, rsaChainCertificateFile),
14028 "-on-initial-retain-only-sha256-client-cert",
14029 "-on-resume-retain-only-sha256-client-cert",
14038 name: "RetainOnlySHA256-Cert-" + ver.name,
14046 "-on-initial-retain-only-sha256-client-cert",
14047 "-on-resume-retain-only-sha256-client-cert",
14048 "-on-initial-expect-sha256-client-cert",
14049 "-on-resume-expect-sha256-client-cert",
14067 "-on-initial-retain-only-sha256-client-cert",
14068 "-on-initial-expect-sha256-client-cert",
14087 "-on-resume-retain-only-sha256-client-cert",
14088 "-on-resume-expect-sha256-client-cert",
14129 cert := Certificate{
14145 Certificates: []Certificate{cert},
14592 flags: []string{"-install-cert-compression-algs"},
14608 flags: []string{"-install-cert-compression-algs"},
14622 flags: []string{"-install-cert-compression-algs"},
14636 flags: []string{"-install-cert-compression-algs"},
14652 flags: []string{"-install-cert-compression-algs"},
14669 flags: []string{"-install-cert-compression-algs"},
14685 flags: []string{"-install-cert-compression-algs"},
14701 flags: []string{"-install-cert-compression-algs"},
14720 flags: []string{"-install-cert-compression-algs"},
14739 flags: []string{"-install-cert-compression-algs"},