Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. sudo /etc/init.d/postgresql start
  2. * Starting PostgreSQL 9.1 database server * The PostgreSQL server failed to start. Please check the log output:
  3. 2012-08-17 16:02:33 CEST FATAL: could not load root certificate file "root.crt": no SSL error reported
  4.  
  5. ls -la
  6. total 92
  7. drwx------ 13 postgres postgres 4096 Aug 16 14:36 .
  8. drwxr-xr-x 3 root root 4096 Aug 16 13:57 ..
  9. drwx------ 5 postgres postgres 4096 Aug 16 14:00 base
  10. drwx------ 2 postgres postgres 4096 Aug 16 14:36 global
  11. drwx------ 2 postgres postgres 4096 Aug 16 14:00 pg_clog
  12. -rw------- 1 postgres postgres 4476 Aug 16 14:00 pg_hba.conf
  13. -rw------- 1 postgres postgres 1636 Aug 16 14:00 pg_ident.conf
  14. drwx------ 4 postgres postgres 4096 Aug 16 14:00 pg_multixact
  15. drwx------ 2 postgres postgres 4096 Aug 16 14:35 pg_notify
  16. drwx------ 2 postgres postgres 4096 Aug 16 14:00 pg_serial
  17. drwx------ 2 postgres postgres 4096 Aug 16 14:36 pg_stat_tmp
  18. drwx------ 2 postgres postgres 4096 Aug 16 14:00 pg_subtrans
  19. drwx------ 2 postgres postgres 4096 Aug 16 14:00 pg_tblspc
  20. drwx------ 2 postgres postgres 4096 Aug 16 14:00 pg_twophase
  21. -rw------- 1 postgres postgres 4 Aug 16 14:00 PG_VERSION
  22. drwx------ 3 postgres postgres 4096 Aug 16 14:00 pg_xlog
  23. -rw------- 1 postgres postgres 19169 Aug 16 14:00 postgresql.conf
  24. -rw------- 1 postgres postgres 126 Aug 16 14:35 postmaster.opts
  25. lrwxrwxrwx 1 postgres postgres 31 Aug 16 14:13 root.crt -> /etc/postgresql-common/root.crt
  26. lrwxrwxrwx 1 postgres postgres 36 Aug 16 14:13 server.crt -> /etc/ssl/certs/ssl-cert-snakeoil.pem
  27. lrwxrwxrwx 1 postgres postgres 38 Aug 16 14:13 server.key -> /etc/ssl/private/ssl-cert-snakeoil.key
  28.  
  29. sudo -u postgres cat /etc/postgresql-common/root.crt
  30.  
  31. This is a dummy root certificate file for PostgreSQL. To enable client side
  32. authentication, add some certificates to it. Client certificates must be signed
  33. with any certificate in this file to be accepted.
  34.  
  35. A reasonable choice is to just symlink this file to
  36. /etc/ssl/certs/ssl-cert-snakeoil.pem; in this case, client certificates need to
  37. be signed by the postgresql server certificate, which might be desirable in
  38. many cases. See
  39.  
  40. file:///usr/share/doc/postgresql-doc-8.3/html/ssl-tcp.html
  41.  
  42. for details (in package postgresql-doc-8.3).
  43.  
  44. ln -s /etc/ssl/certs/ssl-cert-snakeoil.pem root.crt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement