[SOLVED] Error: HTTPS certs for webadmin
#1
Hello,

i try to use https for the webadmin but i doesn't seem to work. At first i used my own certificate from my own CA but it failed so i tried to use the script GenerateSelfSignedHTTPSCertUsingOpenssl.sh and i got the same error:

[21:37:28] WebServer: Cannot read HTTPS certificate: -0x2180

i look into the code it seems the error is from the src/HTTP/HTTPServer.cpp:
int res = Cert->Parse(CertFile.data(), CertFile.size());
if (res == 0)
{
auto CertPrivKey = std::make_shared<cCryptoKey>();
res = CertPrivKey->ParsePrivate(KeyFile.data(), KeyFile.size(), "");
if (res == 0)
{
// Modifyable locally but otherwise must be const
auto Config = cSslConfig::MakeDefaultConfig(false);
Config->SetOwnCert(Cert, CertPrivKey);
m_SslConfig = std::move(Config);
}
else
{
// Reading the private key failed, reset the cert:
LOGWARNING("WebServer: Cannot read HTTPS certificate private key: -0x%x", -res);
}
}
else
{
LOGWARNING("WebServer: Cannot read HTTPS certificate: -0x%x", -res);
}

Thank you for your time.
Reply
Thanks given by:


Messages In This Thread
[SOLVED] Error: HTTPS certs for webadmin - by daisukiXCI - 09-11-2017, 07:49 AM
RE: Error: HTTPS certs for webadmin - by xoft - 09-11-2017, 05:37 PM
RE: Error: HTTPS certs for webadmin - by xoft - 09-18-2017, 11:25 PM
RE: Error: HTTPS certs for webadmin - by xoft - 09-19-2017, 07:10 PM
RE: Error: HTTPS certs for webadmin - by xoft - 09-19-2017, 07:37 PM



Users browsing this thread: 6 Guest(s)