Better error message if SSLCertificateFile not set
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1082104 13f79535-47bb-0310-9956-
ffa450edef68
// Initialize SSL if needed
if (isSSLEnabled()) {
+ if (SSLCertificateFile == null) {
+ // This is required
+ throw new Exception(sm.getString("endpoint.apr.noSslCertFile"));
+ }
+
// SSL protocol
int value = SSL.SSL_PROTOCOL_ALL;
if ("SSLv2".equalsIgnoreCase(SSLProtocol)) {
endpoint.warn.unlockAcceptorFailed=Acceptor thread [{0}] failed to unlock. Forcing hard socket shutdown.
endpoint.debug.channelCloseFail=Failed to close channel
endpoint.debug.socketCloseFail=Failed to close socket
+endpoint.apr.noSslCertFile=Connector attribute SSLCertificateFile must be defined when using SSL with APR
completion. (markt)
</fix>
<fix>
+ <bug>50927</bug>: Improve error message when SSLCertificateFile is not
+ specified when using APR with SSL. Based on a patch provided by sebb.
+ (markt)
+ </fix>
+ <fix>
<bug>50928</bug>: Don't ignore keyPass attribute for HTTP BIO and
NIO connectors. Based on a patch provided by sebb. (markt)
</fix>