Lines Matching refs:cert
41 bool getSPKIDigest(const X509* cert, std::vector<uint8_t>* out) { in getSPKIDigest() argument
42 int spki_len = i2d_X509_PUBKEY(X509_get_X509_PUBKEY(cert), nullptr); in getSPKIDigest()
45 if (spki_len != i2d_X509_PUBKEY(X509_get_X509_PUBKEY(cert), &temp)) { in getSPKIDigest()
115 bssl::UniquePtr<X509> cert(X509_new()); in make_cert() local
116 if (!cert) { in make_cert()
121 ASN1_INTEGER_set(X509_get_serialNumber(cert.get()), 1); in make_cert()
124 X509_gmtime_adj(X509_get_notBefore(cert.get()), 0); in make_cert()
125 X509_gmtime_adj(X509_get_notAfter(cert.get()), 60 * 60); in make_cert()
127 X509_set_pubkey(cert.get(), privkey); in make_cert()
129 if (!X509_sign(cert.get(), parent_key, EVP_sha256())) { in make_cert()
134 return cert; in make_cert()