Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

sample scripts for creating PostgreSQL SSL certificates

NotificationsYou must be signed in to change notification settings

adunstan/ssl-scripts

Repository files navigation

These scripts demonstrate setting up a root CA, and intermediate CA, a leaf CA,and server and client certificates signed by the leaf CA.

The CA passwords are stored in cadir/private. Of course, you shouldn't dothat in a production setting.

The script to generate client and server certificates can take a-k argument.If this is done they will generate a password for the key and tell you what itis.

The client key is generated in both standard PEM format and in PKCS#8 format.The latter is what's required for use with the PostgreSQL JDBC driver.

There are also scripts for simple server and client keys , signed by theroot CA and with a single host name (server) and no PKCS#8 key (client), aswell as a script to generate a self-signed server certificate with a singlehost name.

The Host name(s) and User name for certificates can be provided byenvironment settings like this:

CERTUSER=my_user_name make-client-cert.shCERTUSER=my_user_name make-simple-client-cert.shCERTHOST=foo.bar.com make-self-signed-server-cert.shCERTHOST=foo.bar.com make-simple-server-cert.shCERTHOSTS="foo.bar.com other.name.com" make-server-cert.sh

CERTHOST could also be used for a certificate with an IP address.

The scripts were written to validate some commands shown in a 2019 Conferencepresentation.

About

sample scripts for creating PostgreSQL SSL certificates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp