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

Add support for generating a self signed certificate for the postgresql user. #6

Open
davidassigbi opened this issue Sep 5, 2024 · 0 comments
Assignees

Comments

@davidassigbi
Copy link
Contributor

Expected Behavior

Have a simple way to add ssl authentication for the postgres user using a self signed certificate

Current Behavior

Such option is not available

Possible Solution

génération d'un certificat autosigné (user postgres)

mkdir /var/lib/pgsql/ssl; cd /var/lib/pgsql/ssl
openssl req -new -x509 -days 365 -nodes -text -out pg-server.crt -keyout pg-server.key -subj "/CN=hostname"
chmod og-rwx pg-server.key

modif conf PG au niveau du host

postgresql_global_config_options_extra:
    option : ssl
    value : on

    option : ssl_cert_file
    value : /var/lib/pgsql/ssl/pg-server.crt

    option : ssl_key_file
    value : /var/lib/pgsql/ssl/pg-server.key

Context

Continual improvement

Your Environment

  • Version used: 1.0.0
@nathaliereslou nathaliereslou self-assigned this Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants