Node-ldapjs: PEM routines error: ERR_OSSL_PEM_NO_START_LINE when moving to docker image

Created on 23 Sep 2019  路  9Comments  路  Source: ldapjs/node-ldapjs

I have a module working and properly authenticating to an AD LDAP server in both my Windows Dev computer environment, and on a production linux server, but as soon as I tried to use LDAP from within a docker container, it just gives me this error.
I'm using Node12 docker image and the current version of node-ldapsj.

The full error object that gets returned is:

{
  "library":"PEM routines",
  "function":"get_name",
  "reason":"no start line",
  "code":"ERR_OSSL_PEM_NO_START_LINE"
}

Most helpful comment

My apologies,
This was unrelated.
I didn't understand docker-compose yaml syntax and didn't have newlines in my secret keys.

All 9 comments

So that sounds like an environment problem. How have you concluded this is an ldapjs problem? Which version of ldapjs are you using?

I'm using v1.0.2, and I've verified I can connect to the AD server from my docker container and double checked that all my LDAP references give fully qualified names and addresses.
It seems to be exiting right in the middle of my function that uses ldapjs.

Have you looked at the pinned issues? https://github.com/ldapjs/node-ldapjs/issues/551

I tried using v2.0.0-pre.2 and got the same error.

Then please provide an example that shows how to recreate the failure.

My apologies,
This was unrelated.
I didn't understand docker-compose yaml syntax and didn't have newlines in my secret keys.

Be careful when doing copy and paste. In my case was that the 5 dots was pasted as 4 dots dash:

- ----BEGIN CERTIFICATE
+ -----BEGIN CERTIFICATE

You can validate your certificate here: https://www.sslchecker.com/certdecoder

ERR_OSSL_PEM_NO_START_LINE
error:0909006C:PEM routines:get_name:no start line
please can someone help me out with this error when trying to install any package tthis is what it will be showing me

Tenga cuidado al copiar y pegar. En mi caso fue que los 5 puntos fueron pegados como 4 puntos gui贸n:

- ----BEGIN CERTIFICATE
+ -----BEGIN CERTIFICATE

Puede validar su certificado aqu铆: https://www.sslchecker.com/certdecoder

this is my problem. thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RaymondLC92 picture RaymondLC92  路  5Comments

randomsock picture randomsock  路  7Comments

narendrachoudhary picture narendrachoudhary  路  7Comments

danez picture danez  路  8Comments

moehlone picture moehlone  路  3Comments