Disable ssl verify peer
This makes some browswers fail to login without a
certificate, it needs to stay disabled.
Introduced here:
https://github.com/openbmc/bmcweb/commit/55e43f69#diff-f34027492b16c1b7a880248323fe4fd8R316
Tested: Cert was not required in Chrome on Windows
Change-Id: I27e60e73784d04e14b9b1495ebd1399ad4ab96ab
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/include/ssl_key_handler.hpp b/include/ssl_key_handler.hpp
index f61aa6b..fab31ea 100644
--- a/include/ssl_key_handler.hpp
+++ b/include/ssl_key_handler.hpp
@@ -313,7 +313,9 @@
boost::asio::ssl::context::no_tlsv1 |
boost::asio::ssl::context::no_tlsv1_1);
- mSslContext->set_verify_mode(boost::asio::ssl::verify_peer);
+ // BIG WARNING: This needs to stay disabled, as there will always be
+ // unauthenticated endpoints
+ // mSslContext->set_verify_mode(boost::asio::ssl::verify_peer);
SSL_CTX_set_options(mSslContext->native_handle(), SSL_OP_NO_RENEGOTIATION);