I have been given a certificate file by another team in my organization to connect to a machine they manage.
The file is of the type :
# file EBIP_CACert.crt
EBIP_CACert.crt: PEM certificate
# openssl verify EBIP_CACert.crt
EBIP_CACert.crt: C = SE, ST = Istanbul, L = Istanbul, O = Debon, OU = IT, TK = DebonCA
error 18 at 0 depth lookup:self signed certificate
OK
The way I am trying to verify my SSL connection is by issuing the below command :
# openssl s_client -connect esesslghq27.se:9000 -cert EBIP_CACert.crt
unable to load client certificate private key file
140537395898272:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: ANY PRIVATE KEY
Looking at the ERROR ANY PRIVATE KEY
, Ive tried the solution but was unable to get it to work.
What should I do to make this work and verify the certificate against the node ?