PG_AUTOCTL ENABLE SSL(1)
π PG_AUTOCTL ENABLE SSL(1) π
okay bestie, gather round, because this is the pg_autoctl enable ssl page from the pg_auto_failover manual and it's literally about making your Postgres talk over the network with encryption on. no cap.
β¨ NAME β¨
pg_autoctl enable ssl β like, the command itself
pg_autoctl enable ssl β turn on SSL config for this node, periodt
πΈ SYNOPSIS πΈ
so the way this works is you can manage Postgres SSL settings with the pg_autoctl command β both at pg_autoctl create postgres time, and then again later if you change your mind and want to update the SSL settings at run-time. main character energy: you get to decide twice. π
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 π
--pgdataβ where the Postgres node you're managing locally keeps its data. it defaults to the environment variablePGDATA. and heads up: use--monitorif you wanna connect to a monitor from literally anywhere, instead of the monitor URI that a local Postgres node managed withpg_autoctluses. iykyk π¦--ssl-self-signedβ generate SSL self-signed certificates so you get network encryption. it does NOT protect against man-in-the-middle kinds of attacks, bestie, be so for real about that. see Security settings for pg_auto_failover for more about our SSL settings. π₯--ssl-modeβ the SSL Mode thatpg_autoctluses when it connects to other nodes, including when it's connecting for streaming replication. π--ssl-ca-fileβ set the Postgresssl_ca_fileto that file path. πΈ--ssl-crl-fileβ set the Postgresssl_crl_fileto that file path. πΈ--no-sslβ don't enable network encryption. this is not recommended, prefer--ssl-self-signed. like, genuinely, prefer it. π--server-keyβ set the Postgresssl_key_fileto that file path. π--server-certβ set the Postgresssl_cert_fileto that file path. π
π ENVIRONMENT π
PGDATAβ Postgres directory location. you can use this instead of the--pgdataoption. π«ΆPG_AUTOCTL_MONITORβ Postgres URI for connecting 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 β you ate that π β¨
okay so this was version 2.2, dated Apr 07, 2025, from the PG_AUTOCTL ENABLE SSL(1) of the pg_auto_failover manual. love u, go encrypt something π«ΆππΈ
π¦ where this page comes from
- debian trixie: pg-auto-failover-cli 2.2-2 Β· PostgreSQL
- ubuntu questing: pg-auto-failover-cli 2.2-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms