PG_AUTOCTL_ENABLE_SSL(1)
π PG_AUTOCTL ENABLE SSL π
okay bestie, this is the pg_autoctl enable ssl page from the pg_auto_failover manual, section 1. it's giving "let's talk about network encryption" energy and honestly? we love that for us. π¦
β¨ NAME β¨
pg_autoctl enable ssl β pg_autoctl enable ssl
pg_autoctl enable ssl β Enable SSL configuration on this node
πΈ SYNOPSIS πΈ
so here's the thing, bestie: you can manage your Postgres SSL settings with the pg_autoctl command. both at pg_autoctl create postgres time, and then again later when you change your mind and want to update those SSL settings at run-time. iconic, flexible, we stan. π
usage: pg_autoctl enable ssl [ --pgdata ] [ --json ]
--pgdata path to data directory
--ssl-self-signed setup network encryption using self signed certificates (does NOT protect against MITM)
--ssl-mode use that sslmode in connection strings
--ssl-ca-file set the Postgres ssl_ca_file to that file path
--ssl-crl-file set the Postgres ssl_crl_file to that file path
--no-ssl don't enable network encryption (NOT recommended, prefer --ssl-self-signed)
--server-key set the Postgres ssl_key_file to that file path
--server-cert set the Postgres ssl_cert_file to that file path
π OPTIONS π
every single one of these, no skips, fr fr:
--pgdataβ where the Postgres node that's being managed locally lives. defaults to thePGDATAenvironment variable. and ooh, use--monitorif you wanna connect to a monitor from anywhere, instead of the monitor URI that a local Postgres node managed withpg_autoctlis using. π«--ssl-self-signedβ generate SSL self-signed certificates so you get network encryption. π heads up though: this does NOT protect against man-in-the-middle kinds of attacks. check out "Security settings for pg_auto_failover" for more about the SSL settings.--ssl-modeβ the SSL Modepg_autoctluses when it's connecting to other nodes, including when it's connecting for streaming replication. π¦--ssl-ca-fileβ sets the Postgresssl_ca_fileto that file path.--ssl-crl-fileβ sets the Postgresssl_crl_fileto that file path.--no-sslβ don't enable network encryption. not recommended, bestie!! prefer--ssl-self-signed. π--server-keyβ sets the Postgresssl_key_fileto that file path.--server-certβ sets the Postgresssl_cert_fileto that file path.
π ENVIRONMENT π
PGDATAβ Postgres directory location. can be used instead of the--pgdataoption. πPG_AUTOCTL_MONITORβ Postgres URI to connect to the monitor node, can be used instead of the--monitoroption. πXDG_CONFIG_HOMEβ thepg_autoctlcommand stores its configuration files in the standard placeXDG_CONFIG_HOME. see the XDG Base Directory Specification.XDG_DATA_HOMEβ thepg_autoctlcommand stores its internal states files in the standard placeXDG_DATA_HOME, which defaults to~/.local/share. see the XDG Base Directory Specification.
π AUTHOR π
Microsoft
β COPYRIGHT β
Copyright (c) Microsoft Corporation. All rights reserved.
and that's the whole page, bestie!! go forth and enable that SSL, you absolute icon πβ¨
this was version 2.1, dated Jan 18, 2025, from the pg_auto_failover manual, section 1 β mwah, take care of your certs, love u, bye!! π«ΆπΈ
π¦ where this page comes from
- fedora 43: pg_auto_failover 2.1-6.fc42 Β· Apache-1.0
- fedora 44: pg_auto_failover 2.1-6.fc42 Β· Apache-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms