Lines Matching refs:certificate
159 // self-signed), certificate transparency logging, or many other attributes.
161 // certificate chains. Users should be advised not to deploy chained
172 // (e.g. certificate is corrupted).
341 CERTCertificate *certificate = NULL;
374 LOG(LS_ERROR) << "Couldn't create certificate signing request";
393 certificate = CERT_CreateCertificate(serial, subject_name, validity, certreq);
394 if (!certificate) {
395 LOG(LS_ERROR) << "Couldn't create certificate";
399 arena = certificate->arena;
401 rv = SECOID_SetAlgorithmID(arena, &certificate->signature,
407 *(certificate->version.data) = 2;
408 certificate->version.len = 1;
410 if (!SEC_ASN1EncodeItem(arena, &inner_der, certificate,
418 LOG(LS_ERROR) << "Couldn't sign certificate";
421 certificate->derCert = signed_cert;
423 identity = new NSSIdentity(keypair, new NSSCertificate(certificate));
431 if (certificate) CERT_DestroyCertificate(certificate);
452 const std::string& certificate) {
487 scoped_ptr<NSSCertificate> cert(NSSCertificate::FromPEMString(certificate));
489 LOG(LS_ERROR) << "Couldn't parse certificate";
493 // TODO(ekr@rtfm.com): Check the public key against the certificate.
503 NSSCertificate *certificate = certificate_->GetReference();
504 if (!certificate) {
509 return new NSSIdentity(keypair, certificate);
513 NSSCertificate &NSSIdentity::certificate() const {