Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux:ssl [2022/10/04 17:17] – [Linux SSL] admin | linux:ssl [2024/11/09 13:13] (current) – [SSl certificates] admin | ||
---|---|---|---|
Line 4: | Line 4: | ||
* Управление сертификатами - https:// | * Управление сертификатами - https:// | ||
* книга все что нужно знать - [[https:// | * книга все что нужно знать - [[https:// | ||
+ | * https:// | ||
+ | ===== SSl certificates ===== | ||
+ | |||
+ | <code BASH> | ||
+ | # Example get and install https:// | ||
+ | curl --trace - https:// | ||
+ | cd ~ | ||
+ | openssl s_client -showcerts -connect www.domain.com: | ||
+ | sudo cp domain.com.crt / | ||
+ | sudo update-ca-certificates | ||
+ | </ | ||
+ | |||
+ | <code BASH> | ||
+ | openssl s_client -connect bot.ip2u.ru: | ||
+ | openssl s_client -showcerts -connect www.domain.com: | ||
+ | openssl s_client -showcerts -connect bot.ip2u.ru: | ||
+ | cat ./ | ||
+ | sudo cp ./ | ||
+ | sudo update-ca-certificates | ||
+ | openssl s_client -showcerts -connect bot.ip2u.ru: | ||
+ | openssl s_client -CAfile ./ | ||
+ | curl --verbose | ||
+ | </ | ||
===== Linux SSL key managment | ===== Linux SSL key managment | ||
+ | * update ca certificate on ubuntu | ||
+ | * https:// | ||
+ | * https:// | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | |||
+ | ===== Linux MTLS ===== | ||
+ | https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
===== OpenSSL key manipulating ===== | ===== OpenSSL key manipulating ===== | ||
Line 67: | Line 99: | ||
</ | </ | ||
+ | |||
+ | ===== SSL.https install certificate CA ===== | ||
+ | |||
+ | <code BASH> | ||
+ | # Install certificate and chains - check GOST ciper | ||
+ | STR=$(openssl ciphers| | ||
+ | echo $STR | ||
+ | |||
+ | openssl s_client -showcerts -verify 5 -connect esia.gosuslugi.ru: | ||
+ | openssl x509 -in server_cert_esia.pem -noout -text | ||
+ | # выгружаем сертификаты, | ||
+ | |||
+ | # download CA | ||
+ | wget http:// | ||
+ | # der->pem конвертация | ||
+ | openssl x509 -inform der -in guc_gost12.crt -out GUC_gost12.pem | ||
+ | # проверить информацию | ||
+ | openssl x509 -in GUC_gost12.pem -noout -text | ||
+ | # установить CA debian | ||
+ | cp GUC_gost12.pem / | ||
+ | |||
+ | update-ca-certificates | ||
+ | |||
+ | # | ||
+ | |||
+ | #info: | ||
+ | #cert guc_gost12.crt | ||
+ | #/ | ||
+ | #/ | ||
+ | |||
+ | curl -vvv https:// | ||
+ | </ |