Fix case where ssl cert does not match key
authorNeel Goyal <ngoyal@fb.com>
Tue, 12 Dec 2017 02:48:49 +0000 (18:48 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 12 Dec 2017 02:52:42 +0000 (18:52 -0800)
commit3764b633f977129f8ee3bca60db7c5d1bb969eec
tree6eabb94159f027c03415ad307ad371092339dabc
parenta279ea6be94882796226128e48da4b431e80ab17
Fix case where ssl cert does not match key

Summary: In some cases, SSLContextManager seg faults if a cert and key do not match.  This guards against that case when strictSSL = false, and throws a more useful error in the cases when SSL is required.

Reviewed By: xybu

Differential Revision: D6513964

fbshipit-source-id: 8e63a22b346fd3f2a30d558a3659ab6794c7a105
folly/io/async/SSLContext.cpp