diff options
author | Sara Golemon <sara.golemon@mongodb.com> | 2018-03-17 14:40:13 -0400 |
---|---|---|
committer | Sara Golemon <sara.golemon@mongodb.com> | 2018-04-02 19:58:23 -0400 |
commit | c872bdd8d24a7beb9df42cbe227e99d6738ba71e (patch) | |
tree | 62ca0a42ae0ff5e20e13184c72ff2605c9b9feb8 /src/mongo/db/startup_warnings_common.cpp | |
parent | 069b34c332ea7e8330759037df7bc4bc7d207f2f (diff) | |
download | mongo-c872bdd8d24a7beb9df42cbe227e99d6738ba71e.tar.gz |
SERVER-34139 Add certificate selector for Apple for SecureTransport
Diffstat (limited to 'src/mongo/db/startup_warnings_common.cpp')
-rw-r--r-- | src/mongo/db/startup_warnings_common.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mongo/db/startup_warnings_common.cpp b/src/mongo/db/startup_warnings_common.cpp index 15a8de61823..d82ea0427bd 100644 --- a/src/mongo/db/startup_warnings_common.cpp +++ b/src/mongo/db/startup_warnings_common.cpp @@ -35,6 +35,7 @@ #include <boost/filesystem/operations.hpp> #include <fstream> +#include "mongo/config.h" #include "mongo/db/server_options.h" #include "mongo/util/log.h" #include "mongo/util/net/ssl_options.h" @@ -83,11 +84,16 @@ void logCommonStartupWarnings(const ServerGlobalParams& serverParams) { * specify a sslCAFile parameter from the shell */ if (sslGlobalParams.sslMode.load() != SSLParams::SSLMode_disabled && +#ifdef MONGO_CONFIG_SSL_CERTIFICATE_SELECTORS + sslGlobalParams.sslCertificateSelector.empty() && +#endif sslGlobalParams.sslCAFile.empty()) { log() << ""; log() << "** WARNING: No SSL certificate validation can be performed since" " no CA file has been provided"; - +#ifdef MONGO_CONFIG_SSL_CERTIFICATE_SELECTORS + log() << "** and no sslCertificateSelector has been specified."; +#endif log() << "** Please specify an sslCAFile parameter."; } |