summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/base/ssl_test_util.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/net/base/ssl_test_util.cc b/net/base/ssl_test_util.cc
index 0b82a6e..c051492 100644
--- a/net/base/ssl_test_util.cc
+++ b/net/base/ssl_test_util.cc
@@ -149,10 +149,12 @@ bool TestServerLauncher::Start(Protocol protocol,
const std::string& host_name, int port,
const FilePath& document_root,
const FilePath& cert_path) {
- if (!LoadTestRootCert())
- return false;
- if (!CheckCATrusted())
- return false;
+ if (!cert_path.value().empty()) {
+ if (!LoadTestRootCert())
+ return false;
+ if (!CheckCATrusted())
+ return false;
+ }
std::string port_str = IntToString(port);