How do i create TLS key and crt for pgadmin webinterface

From: "venu(dot)montag(at)t-online(dot)de" <venu(dot)montag(at)t-online(dot)de>
To: "pgadmin-support(at)lists(dot)postgresql(dot)org" <pgadmin-support(at)lists(dot)postgresql(dot)org>
Subject: How do i create TLS key and crt for pgadmin webinterface
Date: 2019-10-11 12:42:26
Message-ID: 1570797746237.1319560.c3b39f9911cd209fbae3458367edec4688173529@spica.telekom.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Hi,

i tried pgadmin with docker and i didn't get with TLS running

docker run -p 80:80 \
-v /$HOME/pgadmin/var_lib:/var/lib/pgadmin \
-e 'PGADMIN_DEFAULT_EMAIL=user(at)domain(dot)com' \
-e 'PGADMIN_DEFAULT_PASSWORD=SuperSecret' \
-d dpage/pgadmin4

is working
i created a certification and key with
openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out
MyCertificate.crt -keyout MyKey.key

docker run -p 443:443 \
-v /$HOME/pgadmin/var_lib:/var/lib/pgadmin \
-v /$HOME/pgadmin/MyCertificate.crt:/certs/server.cert \
-v /$HOME/pgadmin/MyKey.key:/certs/server.key \
-e 'PGADMIN_DEFAULT_EMAIL=user(at)domain(dot)com' \
-e 'PGADMIN_DEFAULT_PASSWORD=SuperSecret' \
-e 'PGADMIN_ENABLE_TLS=True' \
-d dpage/pgadmin4

i can't connect. How do i setup this right ?


Browse pgadmin-support by date

  From Date Subject
Next Message tutiluren 2019-10-12 15:25:53 Incredibly obvious bug found.
Previous Message Khushboo Vashi 2019-10-11 04:05:40 Re: Restore item in server menu (suggestion)