https / ssl certificates problem
Added by livghe over 14 years ago
Hello,
I'm running lighttpd 1.4.28 on Ubuntu 10.10 and I have the following problem related to ssl certificates:
I generate the key and certificate using the following commands:
openssl genrsa -des3 -out server.key 1024
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
my pass phrase is: "QAZxsw123"
And every time I start lighttpd after I enter the pass phrase, I get the following error message:
network.c.721) SSL: Private key does not match the certificate public key, reason: error:0906D06C:PEM routines:PEM_read_bio:no start line ./server.key
My config file looks like this:
server.document-root = "."
server.port = 3000
$SERVER["socket"] == "10.20.20.15:443"
{
ssl.engine = "enable"
ssl.pemfile = "./server.key"
ssl.ca-file = "./server.crt"
server.document-root = "."
}
static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc" )
index-file.names = ( "index.html", "index.htm" )
mimetype.assign = (".html" => "text/html",
".txt" => "text/plain",
".jpg" => "image/jpeg",
".png" => "image/png"
)
How can I fix it and get the server started listening on port 443 for HTTPS and 3000 for HTTP?
Thanks in advance!
Kind Regards,
Liviu
Replies (1)
RE: https / ssl certificates problem - Added by nitrox over 14 years ago
You should use absolute path, beside that you can also remove the passphrase from your cert.