title: Postgresql and SSL certificat
body: <p>I'm trying to install PostgreSQL with another data directory. </p>
  
  <p>The problem comes when I try to start postgresql I have the following error : </p>
  
  <pre><code>Starting PostgreSQL 9.1 database server: main[....] The PostgreSQL server failed to start. Please check the log output: 2014-04-16 22:14:51 CEST FATAL: could not load server [FAILficate file "server.crt": No such file or directory ... failed!
   failed!
  </code></pre>
  
  <p>I've tried a lot of things coming from <a href="https://serverfault.com/questions/418625/postgresql-root-crt-not-loading">here</a> or <a href="http://forums.postgresql.fr/viewtopic.php?id=551" rel="nofollow noreferrer">here</a> but nothing works for me. </p>
  
  <p>My configuration file is in <code>/etc/postgresql/9.1/main/</code> but I don't know why I have a some other configuration files on my new data directory. (visibly they are not used). </p>
  
  <p>Naturally I can fix this bug by commenting the <code>ssl = true</code> on the postgresql.conf but it's not at all the aim.</p>