Skip to main content

How to create a self-signed certificate



Create a self-signed certificate with two commands. It may be useful to administer the site via https, for example.

1. Create a key.


  # openssl genrsa -out server.key 2048 

2. Create a certificate. The domain example.com should be replaced with yours.

  # openssl req -new -x509 -key server.key -out server.crt -days 3650 -subj /CN=example.com 



How do you rate the article?
Звёзд: 1Звёзд: 2Звёзд: 3Звёзд: 4Звёзд: 5 ( 1 rating, average: 5.00 out of 5)
Loading...

Add a comment

Your email will not be published.