2 writes to _cert
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (2)
111
_cert
= cert;
233
_cert
= tmp.CopyWithPrivateKey(rsa);
29 references to _cert
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (29)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (29)
119
_cert
.Dispose();
123
internal string SubjectName =>
_cert
.Subject;
125
internal string OcspResponderSubjectName => (_ocspResponder ??
_cert
).Subject;
129
return new X509Certificate2(
_cert
.RawData);
134
if (!certificate.IssuerName.RawData.SequenceEqual(
_cert
.SubjectName.RawData))
203
X500DistinguishedName subjectName =
_cert
.SubjectName;
205
if (!subjectName.RawData.SequenceEqual(
_cert
.IssuerName.RawData))
210
var req = new CertificateRequest(subjectName,
_cert
.PublicKey, HashAlgorithmName.SHA256);
212
foreach (X509Extension ext in
_cert
.Extensions)
220
byte[] serial =
_cert
.SerialNumberBytes.ToArray();
222
X509Certificate2 dispose =
_cert
;
225
using (RSA rsa =
_cert
.GetRSAPrivateKey())
229
new DateTimeOffset(
_cert
.NotBefore),
230
new DateTimeOffset(
_cert
.NotAfter),
286
_cert
,
287
_cert
.NotBefore.Add(nestingBuffer),
288
_cert
.NotAfter.Subtract(nestingBuffer),
294
return (_certData ??=
_cert
.RawData);
332
thisUpdate =
_cert
.NotBefore;
340
using (RSA key =
_cert
.GetRSAPrivateKey())
343
CorruptRevocationIssuerName ? s_nonParticipatingName :
_cert
.SubjectName,
396
writer.WriteEncodedValue(
_cert
.SubjectName.RawData);
402
writer.WriteUtcTime(
_cert
.NotBefore);
478
using (RSA key =
_cert
.GetRSAPrivateKey())
513
X509Certificate2 responder = (_ocspResponder ??
_cert
);
583
_cert
.NotBefore,
695
_dnHash = SHA1.HashData(
_cert
.SubjectName.RawData);
763
_cert
.Extensions.OfType<X509SubjectKeyIdentifierExtension>().SingleOrDefault();
768
_cert
,