verdaccio-ldap icon indicating copy to clipboard operation
verdaccio-ldap copied to clipboard

support secure protocol with self signed certificate

Open daloulou opened this issue 2 years ago • 2 comments

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

daloulou avatar Oct 01 '21 10:10 daloulou

Hi @daloulou, did you find a solution to this? I'm having the same problem.

Welfordian avatar Aug 21 '23 21:08 Welfordian

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.

timo-wege avatar Dec 13 '23 19:12 timo-wege