howto:hosting:ssl
Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Obě strany předchozí revizePředchozí verzeNásledující verze | Předchozí verze | ||
howto:hosting:ssl [2019/07/28 21:52] – [Apache2] harvie | howto:hosting:ssl [2024/10/30 16:24] (aktuální) – gandalf | ||
---|---|---|---|
Řádek 28: | Řádek 28: | ||
RewriteRule .well-known/ | RewriteRule .well-known/ | ||
</ | </ | ||
+ | |||
+ | ==== Rozšíření stávajícího certifikátu ==== | ||
+ | |||
+ | Již vygenerovaný Letsencrypt cerifikát můžeme rozšířit o další doménu nebo naopak změnit výčet dalších domén kdykoliv. Nutností je pouze zachování hlavní domény (ta co je uvedená za prvním parametrem -d) | ||
+ | Výčet domén, které chceme přidávat, uvadíme v dalších pořadí vždy s parametrem -d | ||
+ | |||
+ | < | ||
+ | root@s1:~# certbot certonly --webroot --webroot-path / | ||
+ | Saving debug log to / | ||
+ | |||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | An RSA certificate named s1.spojenet.cz already exists. Do you want to update | ||
+ | its key type to ECDSA? | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | (U)pdate key type/(K)eep existing key type: u | ||
+ | |||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | You have an existing certificate that contains a portion of the domains you | ||
+ | requested (ref: / | ||
+ | |||
+ | It contains these names: s1.spojenet.cz | ||
+ | |||
+ | You requested these names for the new certificate: | ||
+ | vysehrad.spoje.net. | ||
+ | |||
+ | Do you want to expand and replace this existing certificate with the new | ||
+ | certificate? | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | (E)xpand/ | ||
+ | Renewing an existing certificate for s1.spojenet.cz and vysehrad.spoje.net | ||
+ | |||
+ | Successfully received certificate. | ||
+ | Certificate is saved at: / | ||
+ | Key is saved at: / | ||
+ | This certificate expires on 2024-08-20. | ||
+ | These files will be updated when the certificate renews. | ||
+ | Certbot has set up a scheduled task to automatically renew this certificate in the background. | ||
+ | |||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | If you like Certbot, please consider supporting our work by: | ||
+ | * Donating to ISRG / Let's Encrypt: | ||
+ | * Donating to EFF: https:// | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | |||
+ | </ | ||
+ | |||
==== Priklad pro pouziti bez soucinnosti stavajiciho webserveru ==== | ==== Priklad pro pouziti bez soucinnosti stavajiciho webserveru ==== | ||
Řádek 106: | Řádek 152: | ||
<code ini> | <code ini> | ||
location ^~ / | location ^~ / | ||
+ | allow all; | ||
default_type " | default_type " | ||
alias / | alias / | ||
Řádek 272: | Řádek 319: | ||
openssl x509 -noout -modulus -in test.crt | openssl md5 | openssl x509 -noout -modulus -in test.crt | openssl md5 | ||
+ | |||
+ | ===== Ověření certificate chainu pres OpenSSL ===== | ||
+ | |||
+ | openssl verify -verbose -CAfile le-root-ca.pem / | ||
howto/hosting/ssl.1564343576.txt.gz · Poslední úprava: 2019/07/28 21:52 autor: harvie