Lines Matching refs:certificate
244 const std::string& certificate) {
351 if (!certificate.empty()) {
355 if (!GetCertificateFields(certificate, &subject, &issuer, &serial_number)) {
356 LOG(WARNING) << "Pkcs11KeyStore: Failed to find certificate fields.";
358 // Construct a PKCS #11 template for a certificate object.
359 std::string mutable_certificate = certificate;
387 LOG(ERROR) << "Pkcs11KeyStore: Failed to create certificate object.";
400 const std::string& certificate) {
412 if (DoesCertificateExist(session.handle(), certificate)) {
419 if (!GetCertificateFields(certificate, &subject, &issuer, &serial_number)) {
420 LOG(WARNING) << "Pkcs11KeyStore: Failed to find certificate fields.";
422 // Construct a PKCS #11 template for a certificate object.
423 std::string mutable_certificate = certificate;
447 LOG(ERROR) << "Pkcs11KeyStore: Failed to create certificate object.";
614 bool Pkcs11KeyStore::GetCertificateFields(const std::string& certificate,
619 certificate.data());
620 ScopedX509 x509(d2i_X509(nullptr, &asn1_ptr, certificate.size()));
622 LOG(WARNING) << "Pkcs11KeyStore: Failed to decode certificate.";
629 LOG(WARNING) << "Pkcs11KeyStore: Failed to encode certificate subject.";
638 LOG(WARNING) << "Pkcs11KeyStore: Failed to encode certificate issuer.";
648 LOG(WARNING) << "Pkcs11KeyStore: Failed to encode certificate serial "
658 const std::string& certificate) {
662 std::string mutable_certificate = certificate;