44.5.1. Vytvoření certifikátu

Odkazy:

# openssl req -new -x509 -days 3772 -nodes -out /etc/apache2/ssl/apache-cert.pem -keyout /etc/apache2/ssl/apache-key.pem# chmod 600 apache-key.pem

Počet dní platnosti certifikátu získáme výpočtem třeba v Ruby.

$ irb
irb(main):002:0> require 'date'
=> true
irb(main):014:0> dny=Date::parse('2019-12-30')-Date::today()
=> Rational(3772,1)