On Tue, 2016-05-17 08:29:17 +0000, David Faizulaev wrote:
Hello Ludolf,
I've printed the content of certificate file and the lines: "-----BEGIN CERTIFICATE-----" "-----END CERTIFICATE-----" exist. In addition, I've compared the default certificate provided by Stunnel with the one I wish to use, they're structure is identical.
Hello David,
Please reply to the list, so others are able to comment too.
I don't know the 'default certificate provided by Stunnel'. I expect it to be depending on the distribution.
However, if there are "BEGIN/END CERTIFICATE" lines in your file, but no "BEGIN/END RSA PRIVATE KEY", then the file is in PEM format, but the key is missing. Maybe you have separate files for private key and certificate. If this is the case, you may either concatenate key and certificate to a single file or specify both files in the stunnel configuration:
key = my-private-key.pem cert = my-certificate.pem
Ludolf