Hello,
I have started Greenbone Community Edition using docker-compose. I would like to access the API port but when I’m trying to configure gvmd to listen port instead of socket I’m getting the following error
md main:MESSAGE:2023-03-15 16h09.30 utc:21: Greenbone Vulnerability Manager version 22.4.2 (DB revision 250)
md manage: INFO:2023-03-15 16h09.30 utc:21: Getting users.
md main:MESSAGE:2023-03-15 16h09.32 utc:24: Greenbone Vulnerability Manager version 22.4.2 (DB revision 250)
md manage: INFO:2023-03-15 16h09.32 utc:24: Modifying setting.
md main:MESSAGE:2023-03-15 16h09.34 utc:25: Greenbone Vulnerability Manager version 22.4.2 (DB revision 250)
libgvm util:WARNING:2023-03-15 16h09.36 utc:26: server_new_internal: failed to set credentials key file: Error while reading file.
libgvm util:WARNING:2023-03-15 16h09.36 utc:26: server_new_internal: cert file: /var/lib/gvm/CA/servercert.pem
libgvm util:WARNING:2023-03-15 16h09.36 utc:26: server_new_internal: key file : /var/lib/gvm/private/CA/serverkey.pem
md main:CRITICAL:2023-03-15 16h09.36 utc:26: gvmd: client server initialisation failed
Certificates /var/lib/gvm/private/CA/serverkey.pem
and /var/lib/gvm/CA/servercert.pem
are in place
To configure port I have added these settings to docker-compose.yml gvmd
gvmd:
image: greenbone/gvmd:stable
restart: on-failure
ports:
- 9390:9390
environment:
GVMD_ARGS: '"--port=9390 --listen=0.0.0.0"'