sslutils
A Postgres extension for managing SSL certificates through SQL
Repository
EnterpriseDB/sslutils
https://github.com/EnterpriseDB/sslutils
Source
sslutils-1.4.tar.gz
sslutils-1.4.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
sslutils | 1.4 | SEC | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 7410 | sslutils | No | Yes | No | Yes | No | No | - |
no pg15,14 on el9, no pg18 on el8
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.4 | 1817161514 | sslutils | - |
| RPM | PIGSTY | 1.4 | 1817161514 | sslutils_$v | - |
| DEB | PIGSTY | 1.4 | 1817161514 | postgresql-$v-sslutils | - |
Build
You can build the RPM / DEB packages for sslutils using pig build:
Install
You can install sslutils directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
sslutils is a PostgreSQL extension for managing SSL certificates through SQL commands. It provides functions to generate, inspect, and manage SSL/TLS certificates directly within the database.
Functions
The extension provides SQL functions for SSL certificate management:
| Function | Description |
|---|---|
openssl_rsa_generate_key(bits int) | Generate an RSA private key |
openssl_rsa_key_to_csr(key text, cn text, ...) | Generate a Certificate Signing Request |
openssl_csr_to_crt(csr text, ca_key text, ca_crt text) | Sign a CSR to produce a certificate |
openssl_rsa_generate_crl(ca_key text, ca_crt text) | Generate a Certificate Revocation List |
ssl_is_init_fn() | Check if SSL is initialized |
ssl_get_cipher_fn() | Get current SSL cipher |
ssl_get_version_fn() | Get current SSL version |
Typical Workflow
This extension is useful for automating SSL certificate provisioning in managed PostgreSQL environments.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)