Project

General

Profile

Install SSL Certificate » History » Version 1

Gareth Eaton, 09/19/2024 06:29 AM

1 1 Gareth Eaton
h1. Install SSL Certificate
2
3
Here’s a basic guide on how to install Cloudflare SSL in Nginx Proxy Manager:
4
5
1.  **Generate Cloudflare Origin Certificate:**
6
   - Go to **SSL/TLS** -> **Origin Server**.
7
   - Click **Create Certificate** and let Cloudflare generate the certificate and private key.
8
   - Copy the **Origin Certificate** and **Private Key** displayed.
9
10
2. **Create Certificate Files:**
11
   - Open a text editor on your local machine.
12
   - Paste the **Origin Certificate** into a file named <pre>certificate.pem</pre> 
13
   - Paste the **Private Key** into a file named    <pre>privatekey.pem</pre>
14
   - Save both files securely.
15
16
3. **Upload Certificate to Nginx Proxy Manager:**
17
   - Go to your Nginx Proxy Manager dashboard.
18
   - Navigate to **SSL Certificates**.
19
   - Click **Add SSL Certificate** -> **Custom**.
20
   - Use the **Browse** button to upload the `certificate.pem` and `privatekey.pem` files.
21
   - Ensure they are placed in the correct fields (Certificate and Private Key).
22
23
4. **Set SSL for Proxy Host:**
24
   - Go to **Proxy Hosts** in Nginx Proxy Manager.
25
   - Edit or create a proxy host.
26
   - Under the **SSL** tab, select the SSL certificate you uploaded.
27
   - Optionally, enable **Force SSL**.
28
29
5. **Set Cloudflare SSL Mode:**
30
   - In Cloudflare, set the SSL/TLS mode to **Full (strict)** for better security.