User Tools

Site Tools


пакет_openssl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
пакет_openssl [2025/11/01 09:12]
val [Проверка соответствия ключа и сертификата]
пакет_openssl [2026/02/24 16:26] (current)
val [Просмотр содержимого файла сертификата]
Line 68: Line 68:
  
 ===== Создание параметра DH ===== ===== Создание параметра DH =====
 +
 +  * [[https://​linuxdata.ru/​questions/​q146.html|Что такое dhparam и как его сгенерировать?​]]
 +
 <​code>​ <​code>​
 # time openssl dhparam -out /​etc/​openvpn/​dh2048.pem 2048 # time openssl dhparam -out /​etc/​openvpn/​dh2048.pem 2048
Line 115: Line 118:
 ... ...
  
 +# openssl crl2pkcs7 -nocrl -certfile wild.bmstu.ru.crt | openssl pkcs7 -print_certs -text -noout
 +</​code><​code>​
 +Certificate:​
 +...
 +Certificate:​
 +...
 +</​code><​code>​
 $ cat ~/​.kube/​config | grep client-certificate-data | cut -f2 -d : | tr -d ' ' | base64 -d | openssl x509 -text -out - $ cat ~/​.kube/​config | grep client-certificate-data | cut -f2 -d : | tr -d ' ' | base64 -d | openssl x509 -text -out -
 +</​code><​code>​
 +...
 +        Issuer: ...
 +...
 +        Subject: ...
 +...
 </​code>​ </​code>​
  
Line 362: Line 378:
  
 ==== Проверка соответствия ключа и сертификата ==== ==== Проверка соответствия ключа и сертификата ====
 +
 +  * [[https://​www.ssl.com/​faqs/​how-do-i-confirm-that-a-private-key-matches-a-csr-and-certificate/​|How to Verify an RSA Private Key Matches a CSR and Certificate]]
 +
 <​code>​ <​code>​
 $ openssl x509 -noout -modulus -in www.crt | openssl sha256 $ openssl x509 -noout -modulus -in www.crt | openssl sha256
пакет_openssl.1761977555.txt.gz · Last modified: 2025/11/01 09:12 by val