verdaccio-ldap
verdaccio-ldap copied to clipboard
support secure protocol with self signed certificate
Hi,
I would like to know how i could configure this plugin to work on ldaps using self signed certificate. For now i got :
trace--- ldap emitted error: Error: unable to get local issuer certificate
Oct 01 10:32:46 pvden01l.prod.stormshieldcs.eu verdaccio[5285]: warn --- verdaccio-ldap error Error: unable to get local issuer certificate
Hi @daloulou, did you find a solution to this? I'm having the same problem.
Hi,
I would like to know how i could configure this plugin to work on ldaps using self signed certificate. For now i got :
trace--- ldap emitted error: Error: unable to get local issuer certificate Oct 01 10:32:46 pvden01l.prod.stormshieldcs.eu verdaccio[5285]: warn --- verdaccio-ldap error Error: unable to get local issuer certificate
You can set the environment variable for additional CA Certs in node itself.
I copied our root ca into my own Docker image and set the environment variable.
FROM verdaccio/verdaccio
COPY example.crt /verdaccio/certs/example.crt
ENV NODE_EXTRA_CA_CERTS /verdaccio/certs/example.crt
You can also set it on the docker run first and mount it beforehand.
-v /paht/to/cert/on/host.crt:/verdaccio/certs/host.crt:ro
-e NODE_EXTRA_CA_CERTS=/verdaccio/certs/host.crt
Hope this helps, even if a little later.