mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 14:02:08 +02:00
20 lines
741 B
Markdown
20 lines
741 B
Markdown
# openssl x509
|
|
|
|
> أمر OpenSSL لإدارة شهادات X.509.
|
|
> لمزيد من التفاصيل: <https://www.openssl.org/docs/manmaster/man1/openssl-x509.html>.
|
|
|
|
- عرض معلومات الشهادة:
|
|
|
|
`openssl x509 -in {{filename.crt}} -noout -text`
|
|
|
|
- عرض تاريخ انتهاء صلاحية الشهادة:
|
|
|
|
`openssl x509 -enddate -noout -in {{filename.pem}}`
|
|
|
|
- تحويل الشهادة بين الترميز الثنائي DER والترميز النصي PEM:
|
|
|
|
`openssl x509 -inform {{der}} -outform {{pem}} -in {{original_certificate_file}} -out {{converted_certificate_file}}`
|
|
|
|
- تخزين المفتاح العام للشهادة في ملف:
|
|
|
|
`openssl x509 -in {{certificate_file}} -noout -pubkey -out {{output_file}}`
|