- Installing SSL on Nginx requires combining your certificate files .
- Combine Files: Merge your CRT and CA-Bundle files into a single
.combined.crtfile. - Modify Server Block: Open your Nginx configuration file and add these lines to the server block:
ssl_certificate(Path to the combined file)ssl_certificate_key(Path to your Private Key)
- Verify & Reload: Test the configuration with
nginx -tand then reload usingsystemctl reload nginx.
- Combine Files: Merge your CRT and CA-Bundle files into a single
- المحتوى العربي: يتطلب تثبيت SSL على Nginx دمج ملفات الشهادة الخاصة بك [1، 7].
- دمج الملفات: ادمج ملفات CRT و CA-Bundle في ملف واحد بصيغة
.combined.crt. - تعديل بلوك السيرفر: افتح ملف إعدادات Nginx وأضف هذه الأسطر:
ssl_certificate(مسار الملف المدمج).ssl_certificate_key(مسار المفتاح الخاص بك).
- التحقق وإعادة التحميل: اختبر الإعدادات عبر
nginx -tثم قم بإعادة التحميل باستخدامsystemctl reload nginx.
- دمج الملفات: ادمج ملفات CRT و CA-Bundle في ملف واحد بصيغة