title: NSS Apache SSL Incorrect Password
body: <p>I'm setting up NSS for my Apache server but I'm running into an error. I feel like this is a really easy fix that I'm overlooking.</p>
  
  <p>Here's my Apache error log:</p>
  
  <pre><code>[Tue Mar 21 16:09:13 2017] [error] Password for slot internal is incorrect.
  [Tue Mar 21 16:09:13 2017] [error] NSS initialization failed. Certificate database: /etc/apache2/nssdb/.
  [Tue Mar 21 16:09:13 2017] [error] SSL Library Error: -8177 The security password entered is incorrect
  [Tue Mar 21 16:14:22 2017] [error] Password for slot internal is incorrect.
  [Tue Mar 21 16:14:22 2017] [error] NSS initialization failed. Certificate database: /etc/apache2/nssdb/.
  [Tue Mar 21 16:14:22 2017] [error] SSL Library Error: -8177 The security password entered is incorrect
  [Tue Mar 21 16:24:25 2017] [error] Password for slot internal is incorrect.
  [Tue Mar 21 16:24:25 2017] [error] NSS initialization failed. Certificate database: /etc/apache2/nssdb/.
  [Tue Mar 21 16:24:25 2017] [error] SSL Library Error: -8177 The security password entered is incorrect
  [Tue Mar 21 16:29:00 2017] [error] Password for slot internal is incorrect.
  [Tue Mar 21 16:29:00 2017] [error] NSS initialization failed. Certificate database: /etc/apache2/nssdb/.
  [Tue Mar 21 16:29:00 2017] [error] SSL Library Error: -8177 The security password entered is incorrect
  </code></pre>
  
  <p>I checked <code>apachectl -t</code>, here is the output:</p>
  
  <pre><code>[Tue Mar 21 17:16:23 2017] [warn] module proxy_module is already loaded, skipping
  [Tue Mar 21 17:16:23 2017] [warn] module proxy_http_module is already loaded, skipping
  [Tue Mar 21 17:16:23 2017] [warn] module proxy_module is already loaded, skipping
  [Tue Mar 21 17:16:23 2017] [warn] module proxy_http_module is already loaded, skipping
  Syntax error on line 1 of /etc/apache2/conf.d/NSSPin.conf:
  Invalid command 'token:password', perhaps misspelled or defined by a module not included in the server configuration
  </code></pre>
  
  <p>Here is my nss.conf file:</p>
  
  <pre><code>NSSPassPhraseDialog file:/etc/apache2/conf.d/NSSPin.txt
  NSSPassPhraseHelper /usr/sbin/nss_pcache
  </code></pre>
  
  <p>I've tried multiple combinations of <code>NSSPassPhraseDialog</code> with file, exec, "password", password. In my /etc/apache2/conf.d/NSSPin.txt file (the file that <code>NSSPassPhraseDialog</code> is being linked to) I've tried "password", password, toke:password, token:"password", internal:password, internal:"password". I'm not really sure what else to do. </p>