Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.
service ldap restart
Stopping slapd:                                            [FAILED]
Checking configuration files for slapd:                    [  OK  ]
Starting slapd: 27861:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:632:Expecting: CERTIFICATE
27861:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:632:Expecting: CERTIFICATE
27861:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:632:Expecting: CERTIFICATE
27861:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:632:Expecting: CERTIFICATE
27861:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:632:Expecting: CERTIFICATE
27861:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:632:Expecting: CERTIFICATE
Enter PEM pass phrase:

Not sure why i get these error msgs.

share|improve this question
3  
There is an issue with your certificate. What format is it in? What have you changed before the service broke? Details help a lot. –  Shane Madden Oct 7 '11 at 19:40

2 Answers 2

Check your certificate and your private key with openssl. Make sure they are in PEM format. PEM is an ASCII armored format (open it in an text editor), and you should see BEGIN CERTIFICATE and respectively BEGIN PRIVATE KEY.

share|improve this answer

PEM certificates usually start with:

-----BEGIN CERTIFICATE----- << (5 dashes before and after)

and end with:

-----END CERTIFICATE----- << (5 dashes before and after)

There should be no whitespace before or after the dashes and no carriage return(s) trailing the "END CERTIFICATE" line (openssl doesn't care about the carriage returns when validating a cert but some things do care).

It is not unusual to assume that one should copy everything between the BEGIN and END lines when you actually need to copy everything including the BEGIN and END lines.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.