I'm trying to install a SSL with my nginx setup.
I configured nginx with those two files, but it doesn't work. Nginx complained the following error message.
SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line error:140DC009:SSL routines:SSL_CTX_use_certificate_chain_file:PEM lib
I looked up google then found out that Nginx can't read either the cert or key file.
I opened the cert file and everything looked good. When I opened the key file then I realized it is a binary file.
is this normal? I thought a key file is just a plain text file.
A key can be in binary format, you just need to see how to convert it to the needed format(in case it's the correct key). You can use the next link to check how to do this:
http://help.globalscape.com/help/secureserver3/Converting_an_incompatible_traditional_PEM_encoded_encrypted_private_key.htm
The normal (e.g. more frequent) format used by key (and other) SSL files is PEM - which is an ASCII encoded format.
A pem private key looks as follows: