|
@@ -0,0 +1,20 @@
|
|
|
+# 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}}`
|