(60) SSL certificate problem: unable to get local issuer certificate (ERR_BAD_SSL_CLIENT_AUTH_CERT)
HI,
I am using KEA as DHCP server and Stork as Dasboard, when I try to use RESTAPI in STORK it shows me the following error when accessing: https://localhost:8080
ERR_BAD_SSL_CLIENT_AUTH_CERT
The configuration I have in /etc/stork/server.env for restapi is the following:
REST API settings
STORK_REST_HOST=192.168.179.146
STORK_REST_PORT=8080
STORK_REST_TLS_CERTIFICATE=/etc/stork/srvcert.pem
STORK_REST_TLS_PRIVATE_KEY=/etc/stork/srvkey.pem
STORK_REST_TLS_CA_CERTIFICATE=/etc/stork/cacert.pem
STORK_REST_STATIC_FILES_DIR=/usr/share/stork/www
I have created the certificates as follows:
stork-tool cert-export --db-user stork --db-password "passw" --db-host localhost --db-name stork -f srvcert -o srvcert.pem
stork-tool cert-export --db-user stork --db-password "passw" --db-host localhost --db-name stork -f srvkey -o srvkey.pem
stork-tool cert-export --db-user stork --db-password "passw" --db-host localhost --db-name stork -f cacert -o cacert.pem
It is the first time that I try to use restapi on stork, does anyone have any idea what I could be doing wrong, I use debian 11