Loading...

Create a self signed certificate with openssl

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

Running Kibana with SSL requires a certificate. One way is to use a self signed certificate.

Following command generates 2048 bit strong ssl certificate, valid for 365 days and without password.

openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes
vinh@omega:~> openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes
Generating a 2048 bit RSA private key
..........................+++
.............................................................+++
writing new private key to 'key.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [XX]:CH
State or Province Name (full name) []:Zuerich
Locality Name (eg, city) [Default City]:Zuerich
Organization Name (eg, company) [Default Company Ltd]:Seven Dwarfs AG
Organizational Unit Name (eg, section) []:Snow-White
Common Name (eg, your name or your server's hostname) []:goldmine
Email Address []:admin@mydomain.ch
ssl
Please remember the terms for blog comments.