Loading...

Remove password from private ssl key

:heavy_exclamation_mark: This post is older than a year. Consider some information might not be accurate anymore. :heavy_exclamation_mark:

In the kibana.yml configuration, I setup the mandatory configuration for SSL.

server.ssl.key: "/opt/kibana/latest/ssl/key.pem"
server.ssl.cert: "/opt/kibana/latest/ssl/cert.pem"

Kibana can’t handle private SSL certificates with passwords (key.pem).

tail -f /var/log/kibana/error.log
FATAL [Error: error:0907B068:PEM routines:PEM_READ_BIO_PRIVATEKEY:bad password read]

Therefore I had to remove the password in order to use existing private key. We just export the key into a new keyfile.

openssl rsa -in key.pem -out newkey.pem

The new file should contain following beginning and end:

-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----
Please remember the terms for blog comments.