MCPcopy Create free account
hub / github.com/apache/impala / LoadCertificateAndKey

Method LoadCertificateAndKey

be/src/kudu/security/tls_context.cc:588–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586}
587
588Status TlsContext::LoadCertificateAndKey(const string& certificate_path,
589 const string& key_path) {
590 SCOPED_OPENSSL_NO_PENDING_ERRORS;
591 Cert c;
592 RETURN_NOT_OK(c.FromFile(certificate_path, DataFormat::PEM));
593 PrivateKey k;
594 RETURN_NOT_OK(k.FromFile(key_path, DataFormat::PEM));
595 is_external_cert_ = true;
596 return UseCertificateAndKey(c, k);
597}
598
599Status TlsContext::LoadCertificateAndPasswordProtectedKey(const string& certificate_path,
600 const string& key_path,

Callers 2

ConfigureTlsContextFunction · 0.80
BuildMethod · 0.80

Calls 1

FromFileMethod · 0.45

Tested by 1

ConfigureTlsContextFunction · 0.64