| /openbmc/qemu/scripts/ |
| H A D | u2f-setup-gen.py | 92 cert = crypto.X509() 93 cert.set_version(0x2) 96 cert.set_serial_number(randint(1, 2 ** 64)) 99 cert.gmtime_adj_notBefore(0) 100 cert.gmtime_adj_notAfter(4 * (365 * 24 * 60 * 60)) 103 cert.set_pubkey(pubkey) 106 cert.get_subject().CN = "U2F emulated" 107 cert.set_issuer(cert.get_subject()) 110 cert.add_extensions([ 112 False, b"hash", subject=cert), [all …]
|
| /openbmc/qemu/crypto/ |
| H A D | tlscredsx509.c | 38 qcrypto_tls_creds_check_cert_times(gnutls_x509_crt_t cert, in qcrypto_tls_creds_check_cert_times() argument 51 if (gnutls_x509_crt_get_expiration_time(cert) < now) { in qcrypto_tls_creds_check_cert_times() 62 if (gnutls_x509_crt_get_activation_time(cert) > now) { in qcrypto_tls_creds_check_cert_times() 79 gnutls_x509_crt_t cert, in qcrypto_tls_creds_check_cert_basic_constraints() argument 87 status = gnutls_x509_crt_get_basic_constraints(cert, NULL, NULL, NULL); in qcrypto_tls_creds_check_cert_basic_constraints() 131 gnutls_x509_crt_t cert, in qcrypto_tls_creds_check_cert_key_usage() argument 140 status = gnutls_x509_crt_get_key_usage(cert, &usage, &critical); in qcrypto_tls_creds_check_cert_key_usage() 182 gnutls_x509_crt_t cert, in qcrypto_tls_creds_check_cert_key_purpose() argument 198 status = gnutls_x509_crt_get_key_purpose_oid(cert, i, buffer, in qcrypto_tls_creds_check_cert_key_purpose() 219 status = gnutls_x509_crt_get_key_purpose_oid(cert, i, buffer, in qcrypto_tls_creds_check_cert_key_purpose() [all …]
|
| /openbmc/phosphor-certificate-manager/ |
| H A D | x509_utils.cpp | 94 X509Ptr cert(X509_new(), ::X509_free); in loadCert() local 95 if (!cert) in loadCert() 111 X509* x509 = cert.get(); in loadCert() 118 return cert; in loadCert() 123 void validateCertificateStartDate(X509& cert) in validateCertificateStartDate() argument 132 ASN1_TIME* notBefore = X509_get_notBefore(&cert); in validateCertificateStartDate() 143 void validateCertificateAgainstStore(X509_STORE& x509Store, X509& cert) in validateCertificateAgainstStore() argument 153 errCode = X509_STORE_CTX_init(storeCtx.get(), &x509Store, &cert, nullptr); in validateCertificateAgainstStore() 211 void validateCertificateInSSLContext(X509& cert) in validateCertificateInSSLContext() argument 215 if (SSL_CTX_use_certificate(ctx.get(), &cert) != 1) in validateCertificateInSSLContext() [all …]
|
| H A D | certificate.cpp | 157 const internal::X509Ptr cert = loadCert(certSrcFilePath); in generateAuthCertFileX509Path() local 158 unsigned long hash = X509_subject_name_hash(cert.get()); in generateAuthCertFileX509Path() 336 internal::X509Ptr cert = loadCert(certSrcFilePath); in install() local 339 validateCertificateAgainstStore(*x509Store, *cert); in install() 340 validateCertificateStartDate(*cert); in install() 341 validateCertificateInSSLContext(*cert); in install() 371 certId = generateCertId(*cert); in install() 374 populateProperties(*cert); in install() 410 internal::X509Ptr cert = parseCert(pem); in install() local 412 validateCertificateAgainstStore(x509Store, *cert); in install() [all …]
|
| H A D | x509_utils.hpp | 33 void validateCertificateStartDate(X509& cert); 42 void validateCertificateAgainstStore(X509_STORE& x509Store, X509& cert); 50 void validateCertificateInSSLContext(X509& cert); 59 std::string generateCertId(X509& cert);
|
| H A D | meson.options | 11 'ca-cert-extension', 19 description: 'Install bmcweb cert configs', 25 description: 'Install authority cert configs',
|
| /openbmc/obmc-console/ |
| H A D | .clang-tidy | 47 cert-con36-c, 48 cert-con54-cpp, 49 cert-dcl03-c, 50 cert-dcl16-c, 51 cert-dcl21-cpp, 52 cert-dcl37-c, 53 cert-dcl50-cpp, 54 cert-dcl51-cpp, 55 cert-dcl54-cpp, 56 cert-dcl58-cpp, [all …]
|
| /openbmc/libpldm/ |
| H A D | .clang-tidy | 47 cert-con36-c, 48 cert-con54-cpp, 49 cert-dcl03-c, 50 cert-dcl16-c, 51 cert-dcl21-cpp, 52 cert-dcl37-c, 53 cert-dcl50-cpp, 54 cert-dcl51-cpp, 55 cert-dcl54-cpp, 56 cert-dcl58-cpp, [all …]
|
| /openbmc/openbmc/meta-phosphor/recipes-phosphor/certificate/ |
| H A D | phosphor-certificate-manager_git.bb | 15 PACKAGECONFIG ??= "bmcweb-cert authority-cert" 16 PACKAGECONFIG[ibm-hypervisor-cert] = "-Dca-cert-extension=enabled,-Dca-cert-extension=disabled" 17 PACKAGECONFIG[bmcweb-cert] = "-Dconfig-bmcweb=enabled,-Dconfig-bmcweb=disabled" 18 PACKAGECONFIG[authority-cert] = "-Dconfig-authority=enabled,-Dconfig-authority=disabled" 28 …${@bb.utils.contains('PACKAGECONFIG', 'ibm-hypervisor-cert', 'bmc-vmi-ca-manager.service', '', d)}… 29 …${@bb.utils.contains('PACKAGECONFIG', 'authority-cert', 'phosphor-certificate-manager@authority.se…
|
| /openbmc/libcper/ |
| H A D | .clang-tidy | 45 cert-con36-c, 46 cert-con54-cpp, 47 cert-dcl03-c, 48 cert-dcl16-c, 49 cert-dcl21-cpp, 50 cert-dcl37-c, 51 cert-dcl50-cpp, 52 cert-dcl51-cpp, 53 cert-dcl54-cpp, 54 cert-dcl58-cpp, [all …]
|
| /openbmc/phosphor-led-manager/ |
| H A D | .clang-tidy | 59 cert-con36-c, 60 cert-con54-cpp, 61 cert-dcl03-c, 62 cert-dcl16-c, 63 cert-dcl21-cpp, 64 cert-dcl37-c, 65 cert-dcl50-cpp, 66 cert-dcl51-cpp, 67 cert-dcl54-cpp, 68 cert-dcl58-cpp, [all …]
|
| /openbmc/phosphor-state-manager/ |
| H A D | .clang-tidy | 59 cert-con36-c, 60 cert-con54-cpp, 61 cert-dcl03-c, 62 cert-dcl16-c, 63 cert-dcl21-cpp, 64 cert-dcl37-c, 65 cert-dcl50-cpp, 66 cert-dcl51-cpp, 67 cert-dcl54-cpp, 68 cert-dcl58-cpp, [all …]
|
| /openbmc/bmcweb/include/ |
| H A D | hostname_monitor.hpp | 90 X509* cert = ensuressl::loadCert(certFile); in onPropertyUpdate() local 91 if (cert == nullptr) in onPropertyUpdate() 101 X509_NAME_get_text_by_NID(X509_get_subject_name(cert), NID_commonName, in onPropertyUpdate() 106 X509_free(cert); in onPropertyUpdate() 112 EVP_PKEY* pPubKey = X509_get_pubkey(cert); in onPropertyUpdate() 116 X509_free(cert); in onPropertyUpdate() 119 int isSelfSigned = X509_verify(cert, pPubKey); in onPropertyUpdate() 127 X509_get_ext_d2i(cert, NID_netscape_comment, nullptr, nullptr)); in onPropertyUpdate() 155 X509_free(cert); in onPropertyUpdate()
|
| /openbmc/phosphor-bmc-code-mgmt/ |
| H A D | .clang-tidy | 59 cert-con36-c, 60 cert-con54-cpp, 61 cert-dcl03-c, 62 cert-dcl16-c, 63 cert-dcl21-cpp, 64 cert-dcl37-c, 65 cert-dcl50-cpp, 66 cert-dcl51-cpp, 67 cert-dcl54-cpp, 68 cert-dcl58-cpp, [all …]
|
| /openbmc/phosphor-psu-code-mgmt/ |
| H A D | .clang-tidy | 58 cert-con36-c, 59 cert-con54-cpp, 60 cert-dcl03-c, 61 cert-dcl16-c, 62 cert-dcl21-cpp, 63 cert-dcl50-cpp, 64 cert-dcl54-cpp, 65 cert-dcl58-cpp, 66 cert-dcl59-cpp, 67 cert-err09-cpp, [all …]
|
| /openbmc/estoraged/ |
| H A D | .clang-tidy | 61 cert-con36-c, 62 cert-con54-cpp, 63 cert-dcl03-c, 64 cert-dcl16-c, 65 cert-dcl21-cpp, 66 cert-dcl37-c, 67 cert-dcl50-cpp, 68 cert-dcl51-cpp, 69 cert-dcl54-cpp, 70 cert-dcl58-cpp, [all …]
|
| /openbmc/phosphor-time-manager/ |
| H A D | .clang-tidy | 60 cert-con36-c, 61 cert-con54-cpp, 62 cert-dcl03-c, 63 cert-dcl16-c, 64 cert-dcl21-cpp, 65 cert-dcl37-c, 66 cert-dcl50-cpp, 67 cert-dcl51-cpp, 68 cert-dcl54-cpp, 69 cert-dcl58-cpp, [all …]
|
| /openbmc/phosphor-led-sysfs/ |
| H A D | .clang-tidy | 60 cert-con36-c, 61 cert-con54-cpp, 62 cert-dcl03-c, 63 cert-dcl16-c, 64 cert-dcl21-cpp, 65 cert-dcl37-c, 66 cert-dcl50-cpp, 67 cert-dcl51-cpp, 68 cert-dcl54-cpp, 69 cert-dcl58-cpp, [all …]
|
| /openbmc/bmcweb/test/include/ |
| H A D | ssl_key_handler_test.cpp | 18 std::string cert = generateSslCertificate("TestCommonName"); in TEST() local 20 EXPECT_FALSE(cert.empty()); in TEST() 22 writeCertificateToFile(myFile.filePath, cert); in TEST() 26 EXPECT_EQ(cert, cert2); in TEST()
|
| /openbmc/phosphor-debug-collector/ |
| H A D | .clang-tidy | 80 cert-con36-c, 81 cert-con54-cpp, 82 cert-dcl03-c, 83 cert-dcl16-c, 84 cert-dcl21-cpp, 85 cert-dcl37-c, 86 cert-dcl50-cpp, 87 cert-dcl51-cpp, 88 cert-dcl54-cpp, 89 cert-dcl58-cpp, [all …]
|
| /openbmc/dbus-sensors/ |
| H A D | .clang-tidy | 79 cert-con36-c, 80 cert-con54-cpp, 81 cert-dcl03-c, 82 cert-dcl16-c, 83 cert-dcl21-cpp, 84 cert-dcl37-c, 85 cert-dcl50-cpp, 86 cert-dcl51-cpp, 87 cert-dcl54-cpp, 88 cert-dcl58-cpp, [all …]
|
| /openbmc/bmcweb/ |
| H A D | .clang-tidy | 85 cert-con36-c, 86 cert-con54-cpp, 87 cert-ctr56-cpp, 88 cert-dcl03-c, 89 cert-dcl16-c, 90 cert-dcl21-cpp, 91 cert-dcl37-c, 92 cert-dcl50-cpp, 93 cert-dcl51-cpp, 94 cert-dcl54-cpp, [all …]
|
| /openbmc/pldm/ |
| H A D | .clang-tidy | 54 cert-con54-cpp, 55 cert-dcl21-cpp, 56 cert-dcl50-cpp, 57 cert-dcl54-cpp, 58 cert-dcl58-cpp, 59 cert-dcl59-cpp, 60 cert-err09-cpp, 61 cert-err52-cpp, 62 cert-err60-cpp, 63 cert-err61-cpp, [all …]
|
| /openbmc/entity-manager/ |
| H A D | .clang-tidy | 80 cert-con36-c, 81 cert-con54-cpp, 82 cert-dcl03-c, 83 cert-dcl16-c, 84 cert-dcl21-cpp, 85 cert-dcl37-c, 86 cert-dcl50-cpp, 87 cert-dcl51-cpp, 88 cert-dcl54-cpp, 89 cert-dcl58-cpp, [all …]
|
| /openbmc/bmcweb/src/ |
| H A D | ssl_key_handler.cpp | 76 bool validateCertificate(X509* const cert) in validateCertificate() argument 95 int errCode = X509_STORE_CTX_init(storeCtx, x509Store, cert, nullptr); in validateCertificate() 217 X509* cert = X509_new(); in loadCert() local 218 if (cert == nullptr) in loadCert() 226 if (PEM_read_bio_X509(certFileBio, &cert, nullptr, nullptr) == nullptr) in loadCert() 232 X509_free(cert); in loadCert() 236 return cert; in loadCert() 239 int addExt(X509* cert, int nid, const char* value) in addExt() argument 243 X509V3_set_ctx(&ctx, cert, cert, nullptr, nullptr, 0); in addExt() 252 X509_add_ext(cert, ex, -1); in addExt() [all …]
|