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/10/24 08:54]
val [Импорт сертификата центра сертификации]
пакет_openssl [2025/11/06 09:26] (current)
val [Просмотр содержимого файла сертификата]
Line 116: Line 116:
  
 $ 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 369:
  
 ==== Проверка соответствия ключа и сертификата ==== ==== Проверка соответствия ключа и сертификата ====
 +
 +  * [[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 ​md5+$ openssl x509 -noout -modulus -in www.crt | openssl ​sha256
  
-$ openssl rsa -noout -modulus -in www.key | openssl ​md5+$ openssl rsa -noout -modulus -in www.key | openssl ​sha256
 </​code>​ </​code>​
 ==== Шифрование ключа сервера ==== ==== Шифрование ключа сервера ====
пакет_openssl.1761285269.txt.gz · Last modified: 2025/10/24 08:54 by val