--- java/org/apache/tomcat/util/net/AprEndpoint.java (revision 1080234) +++ java/org/apache/tomcat/util/net/AprEndpoint.java (working copy) @@ -493,6 +493,9 @@ } // List the ciphers that the client is permitted to negotiate SSLContext.setCipherSuite(sslContext, SSLCipherSuite); + if (SSLCertificateFile == null){ // Check here so can give specific error message + throw new Exception("Connector attribute SSLCertificateFile must be defined when using SSL with APR"); + } // Load Server key and certificate SSLContext.setCertificate(sslContext, SSLCertificateFile, SSLCertificateKeyFile, SSLPassword, SSL.SSL_AIDX_RSA); // Set certificate chain file