| 586 | } |
| 587 | |
| 588 | Status 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 | |
| 599 | Status TlsContext::LoadCertificateAndPasswordProtectedKey(const string& certificate_path, |
| 600 | const string& key_path, |