This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
пакет_openssl [2024/07/18 10:58] val [Создание сертификата] |
пакет_openssl [2025/02/27 06:16] (current) val [Интерактивное подключение по ssl] |
||
---|---|---|---|
Line 14: | Line 14: | ||
===== Интерактивное подключение по ssl ===== | ===== Интерактивное подключение по ssl ===== | ||
+ | |||
+ | * [[Настройка терминалов]] | ||
+ | |||
<code> | <code> | ||
$ openssl s_client -connect ru.wikipedia.org:443 | $ openssl s_client -connect ru.wikipedia.org:443 | ||
- | |||
- | $ openssl s_client -showcerts -connect webinar6.bmstu.ru:443 2>/dev/null | openssl x509 -noout -dates #-text | grep bmstu | ||
$ faketime -f "+500d" wget -q -O /dev/null https://webinar7.bmstu.ru && echo Ok || echo Err | $ faketime -f "+500d" wget -q -O /dev/null https://webinar7.bmstu.ru && echo Ok || echo Err | ||
Line 132: | Line 133: | ||
# cp ca.crt /usr/local/share/ca-certificates/ | # cp ca.crt /usr/local/share/ca-certificates/ | ||
или | или | ||
- | server# cp corpX-PDC-CA.crt /usr/local/share/ca-certificates/ | + | # cp corpX-PDC-CA.crt /usr/local/share/ca-certificates/ |
+ | или | ||
+ | # cp wild.crt /usr/local/share/ca-certificates/ | ||
# update-ca-certificates | # update-ca-certificates | ||
Line 139: | Line 142: | ||
... | ... | ||
- | server# ls /etc/ssl/certs | grep corp | + | server# ls /etc/ssl/certs | grep "wild\|corp\|ca.pem" |
- | или | + | |
- | server# ls /etc/ssl/certs | grep ca.pem | + | |
... | ... | ||
- | server# openssl verify server.crt | + | # openssl verify server.crt |
server.crt: OK | server.crt: OK | ||
- | # wget -O - https://www.corpX.un | + | # curl -v https://www.corpX.un |
- | или | + | |
- | # curl https://www.corpX.un | + | |
</code> | </code> | ||
Line 261: | Line 260: | ||
==== Инициализация списка отозванных сертификатов ==== | ==== Инициализация списка отозванных сертификатов ==== | ||
<code> | <code> | ||
- | lan# openssl ca -gencrl -out /var/www/html/ca.crl | + | lan# openssl ca -gencrl -crldays 365 -out /var/www/html/ca.crl |
</code><code> | </code><code> | ||
Enter pass phrase for ./CA/ca.key:Pa$$w0rd | Enter pass phrase for ./CA/ca.key:Pa$$w0rd | ||
Line 414: | Line 413: | ||
lan# less CA/index.txt | lan# less CA/index.txt | ||
- | lan# openssl ca -gencrl -out /var/www/html/ca.crl | + | lan# openssl ca -gencrl -crldays 365 -out /var/www/html/ca.crl |
lan# openssl crl -text -noout -in /var/www/html/ca.crl | less | lan# openssl crl -text -noout -in /var/www/html/ca.crl | less |