1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-24 01:22:10 +02:00
tldr/pages.ar/common/openssl-req.md
2025-02-06 23:00:31 +05:30

604 B

openssl req

أمر OpenSSL لإدارة طلبات توقيع الشهادات PKCS#10. لمزيد من التفاصيل: https://www.openssl.org/docs/manmaster/man1/openssl-req.html.

  • إنشاء طلب توقيع شهادة لإرساله إلى جهة تصديق:

openssl req -new -sha256 -key {{filename.key}} -out {{filename.csr}}

  • إنشاء شهادة موقعة ذاتيًا وزوج مفاتيح مقابلة، وحفظهما في ملف:

openssl req -new -x509 -newkey {{rsa}}:{{4096}} -keyout {{filename.key}} -out {{filename.cert}} -subj "{{/C=XX/CN=foobar}}" -days {{365}}