Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support secure protocol with self signed certificate #95

Open
daloulou opened this issue Oct 1, 2021 · 2 comments
Open

support secure protocol with self signed certificate #95

daloulou opened this issue Oct 1, 2021 · 2 comments

Comments

@daloulou
Copy link

daloulou commented Oct 1, 2021

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

@Welfordian
Copy link

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

@timo-wege
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants