Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgresql 9.x can't start due to missing SSL certificates #106

Closed
hufman opened this issue Jan 20, 2014 · 7 comments
Closed

Postgresql 9.x can't start due to missing SSL certificates #106

hufman opened this issue Jan 20, 2014 · 7 comments

Comments

@hufman
Copy link

hufman commented Jan 20, 2014

The attributes file sets ssl=on in the postgresql.conf file, but it does not create a server.key and server.pem file in the data directory. I am on Debian, so my previous fix has been to recreate the server.key and server.pem symlink to the apppropriate snakeoil files in /etc/ssl. Now I add the ssl_cert_file and ssl_key_file attributes to the environment to point to the /etc/ssl snakeoil files.

@vmihailenco
Copy link

Same situation here on Ubuntu 12.04.

@orangethunder
Copy link

Also on Ubuntu 12.04, Postgres 9.3. I have a similar fix:

node.default["postgresql"]["config"]["ssl_cert_file"] = "/etc/ssl/certs/ssl-cert-snakeoil.pem"
node.default["postgresql"]["config"]["ssl_key_file"] = "/etc/ssl/private/ssl-cert-snakeoil.key"

Based on:

https://github.com/escobera/chef-postgresql/commit/4be67561ecb4949d1930980d5fc5c8e90fa03c47

@thmsobrmlr
Copy link
Contributor

We should add these to default attributes. Done in pull request.

@michaelkirk
Copy link
Contributor

Is this still an issue?

It looks like this was solved with #116

@thmsobrmlr
Copy link
Contributor

@michaelkirk Yes it was solved with pull request #116. The issue can be closed.

@slyness
Copy link

slyness commented Jun 16, 2014

Resolved. Closing.

@slyness slyness closed this as completed Jun 16, 2014
chris-rock pushed a commit to chris-rock/postgresql that referenced this issue Jan 4, 2017
@lock
Copy link

lock bot commented Jul 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants