OpenSSL, sertifikalarla çalışmanın İsviçre çakısıdır. Bu rehberde en sık ihtiyaç duyulan doğrulama komutlarını topladık.
Canlı bağlantıyı test etme
openssl s_client -connect ornek.com.tr:443 -servername ornek.com.tr
Sunulan zinciri, protokolü ve sertifikayı gösterir. Zincir eksikse burada görürsünüz.
Sertifika dosyasını okuma
openssl x509 -in certificate.crt -noout -text
Issuer, Validity, Subject Alternative Name ve anahtar bilgilerini listeler.
Süreyi hızlı görme
openssl x509 -in certificate.crt -noout -dates
Key ile cert eşleşmesi
İkisinin modulus md5'i aynı olmalı:
openssl x509 -noout -modulus -in certificate.crt | openssl md5
openssl rsa -noout -modulus -in private.key | openssl md5
CSR çözme
openssl req -in request.csr -noout -text -verify
Zincir doğrulama
openssl verify -CAfile ca_bundle.crt certificate.crt
Format dönüşümü (PFX → PEM)
openssl pkcs12 -in cert.pfx -out cert.pem -nodes
Bu komutlar, çoğu SSL sorununu (eksik zincir, uyumsuz anahtar, süre) hızlıca teşhis etmenizi sağlar.

Yorumlar
Henüz yorum yapılmamış. İlk yorumu siz yapın!
Yorum Yaz