<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I'm trying to set up an nss.conf to use while we are doing maintenance which will point all ssl traffic to a file called maintenance.html which simply states that we are doing maintenance on the server.  The rewrite.conf we have set up is working fine for port 80 traffic, but the nss.conf is not working.<br><br></div>Here are the errors I'm getting.  BTW, we are using a self signed cert because this is our test system.  I figured this would cause an info or at most a warning message, but not an error message.<br><br>[Thu Aug 27 13:38:00 2015] [info] Connection to child 0 established (server jamie-web1:443, client "Server IP")<br>[Thu Aug 27 13:38:00 2015] [info] Connection to child 7 established (server jamie-web1:443, client "Server IP")<br>[Thu Aug 27 13:38:00 2015] [info] SSL input filter read failed.<br>[Thu Aug 27 13:38:00 2015] [error] SSL Library Error: -12195 Peer does not recognize and trust the CA that issued your certificate<br>[Thu Aug 27 13:38:00 2015] [info] Connection to child 7 closed (server <a href="http://jamie-web1.novetta.com:443">jamie-web1.novetta.com:443</a>, client Server IP)<br>[Thu Aug 27 13:38:00 2015] [info] SSL library error -8172 writing data<br>[Thu Aug 27 13:38:00 2015] [info] SSL Library Error: -8172 Certificate is signed by an untrusted issuer<br>[Thu Aug 27 13:38:00 2015] [error] (20014)Internal error: proxy: pass request body failed to <a href="http://10.3.238.21:443">10.3.238.21:443</a> (jamie-web1)<br>[Thu Aug 27 13:38:00 2015] [error] proxy: pass request body failed to Server IP:443 (jamie-web1) from Server IP ()<br>[Thu Aug 27 13:38:00 2015] [info] Connection to child 1 closed (server jamie-web1:443, client "Workstation IP")<br><br></div>This is the nss.conf I'm using.<br><br>Listen 443<br><br>AddType application/x-x509-ca-cert .crt<br>AddType application/x-pkcs7-crl    .crl<br><br>NSSPassPhraseDialog file:/etc/httpd/.password.conf<br>#NSSPassPhraseDialog  builtin<br><br>NSSPassPhraseHelper /usr/sbin/nss_pcache<br><br>NSSSessionCacheSize 10000<br>NSSSessionCacheTimeout 100<br>NSSSession3CacheTimeout 86400<br><br><br>NSSRandomSeed startup builtin<br><br><br><VirtualHost _default_:443><br><br>DocumentRoot "/var/www/docroot"<br>NSSProxyCheckPeerCN Off<br>NSSEngine on<br>NSSProxyEngine on<br>NSSEnforceValidCerts off<br>NSSRenegotiation on<br>NSSRequireSafeNegotiation on<br><br>NSSCipherSuite +rsa_3des_sha,-rsa_des_sha,-rsa_rc4_40_md5,-rsa_rc2_40_md5,-rsa_null_md5,-rsa_null_sha,+fips_3des_sha,-fips_des_sha,-fortezza,-fortezza_rc4_128_sha,-fortezza_null,-rsa_des_56_sha,-rsa_rc4_56_sha,+rsa_aes_128_sha,+rsa_aes_256_sha<br><br>NSSProxyCipherSuite +rsa_3des_sha,-rsa_des_sha,-rsa_rc4_40_md5,-rsa_rc2_40_md5,-rsa_null_md5,-rsa_null_sha,+fips_3des_sha,-fips_des_sha,-fortezza,-fortezza_rc4_128_sha,-fortezza_null,-rsa_des_56_sha,-rsa_rc4_56_sha,+rsa_aes_128_sha,+rsa_aes_256_sha<br><br>NSSProtocol TLSv1<br>NSSNickname Server-Cert<br>NSSCertificateDatabase /etc/httpd/alias<br>NSSFIPS on<br>NSSOCSP off<br><br>ProxyPreserveHost On<br><br><br><Location /><br>#SSLRenegBufferSize 52430000<br>      NSSVerifyClient optional<br>      NSSOptions +ExportCertData +StdEnvVars<br>      ProxyPass <a href="https://jamie-web1/maintenance.html">https://jamie-web1/maintenance.html</a><br>      ProxyPassReverse <a href="https://jamie-web1/maintenance.html">https://jamie-web1/maintenance.html</a><br></Location><br><br><Files ~ "\.(cgi|shtml|phtml|php3?)$"><br>    NSSOptions +StdEnvVars<br></Files><br><Directory "/var/www/cgi-bin"><br>    NSSOptions +StdEnvVars<br></Directory><br><br><br># initialize the SSL headers to a blank value to avoid http header forgeries<br>RequestHeader set SSL_CLIENT_CERT ""<br>RequestHeader set SSL_CIPHER ""<br>RequestHeader set SSL_SESSION_ID ""<br>RequestHeader set SSL_CIPHER_USEKEYSIZE ""<br><br>RequestHeader set SSL_CLIENT_CERT "%{SSL_CLIENT_CERT}s"<br>RequestHeader set SSL_CIPHER "%{SSL_CIPHER}s"<br>RequestHeader set SSL_SESSION_ID "%{SSL_SESSION_ID}s"<br>RequestHeader set SSL_CIPHER_USEKEYSIZE "%{SSL_CIPHER_USEKEYSIZE}s"<br><br>CustomLog /var/log/httpd/ssl_request_log "%t %h %{SSL_CLIENT_CERT}x %{SSL_CLIENT_S_DN}x %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"<br><br><br>ErrorLog /etc/httpd/logs/error_log<br>TransferLog /etc/httpd/logs/access_log<br>LogLevel info<br><br></VirtualHost><br><br></div>If anyone can help I'd appreciate it.<br><br></div>Thanks,<br><br></div>Larry Cohen<br></div>