From 902a8ad44ef269e23028c0b57e576bf020539bc4 Mon Sep 17 00:00:00 2001 From: AsunaYukky <83214353+AsunaYukky@users.noreply.github.com> Date: Wed, 6 Mar 2024 11:45:18 +1100 Subject: [PATCH] changed images to actual --- ...te-for-3X‐UI-webpanel-(also-if-you-don't-use-domains).md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/How-to-create-self‐signed-SSL-certificate-for-3X‐UI-webpanel-(also-if-you-don't-use-domains).md b/How-to-create-self‐signed-SSL-certificate-for-3X‐UI-webpanel-(also-if-you-don't-use-domains).md index 124a017..876f074 100644 --- a/How-to-create-self‐signed-SSL-certificate-for-3X‐UI-webpanel-(also-if-you-don't-use-domains).md +++ b/How-to-create-self‐signed-SSL-certificate-for-3X‐UI-webpanel-(also-if-you-don't-use-domains).md @@ -4,7 +4,7 @@ I know, that it is security issue for me, but I can't use LetsEncrypt certificat Solution - make self-signed certificate for my IP address.
## Lets do this!
Go to server bash.
-I create folder inside /usr/local/x-ui/ directory for cert's.
+I create folder inside /root directory for cert's.
`cd /root`
`mkdir ssl-srt`
`cd ssl-srt`
@@ -12,15 +12,15 @@ Next step - create certificates. I make it for 10 years, if you need more or les `openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 3650`
### **WARN**
It will ask you for PEM pass phrase - remember it! It will bee needed for next step! Or use easy - I use "1234"
-![1](https://github.com/MHSanaei/3x-ui/assets/83214353/7dec3195-4eaa-4ea8-a486-e1b4ca2115a5)
+![image](https://github.com/MHSanaei/3x-ui/assets/83214353/cb469abd-36f8-4119-aee6-412ba725f4f8)
Next step - input data for certificate. I leave all blank.
**!!!BUT!!!**
You need to input **your real IP address into Common Name field**.
-![2](https://github.com/MHSanaei/3x-ui/assets/83214353/7dcb0a8c-6599-44a8-80d7-e6e35e4c827f)
+![image](https://github.com/MHSanaei/3x-ui/assets/83214353/fb00a85f-e979-41d4-93c2-5230dcdb8d7f)
Certs made. But if you try to install it inside the panel, you will take an error, cause your private key locked by pass phrase.
Let's unlock it!
`openssl rsa -in key.pem -out key.un.pem -passin pass:YOUR PASS PHRASE`
-![image](https://github.com/MHSanaei/3x-ui/assets/83214353/bd8609f5-7ac1-4831-ac36-b32e46f8a282)
+![image](https://github.com/MHSanaei/3x-ui/assets/83214353/bd83446d-3b80-46c3-a09c-b0eb70f0268f)
## And the final round - install it into the WebPanel.
![image](https://github.com/MHSanaei/3x-ui/assets/83214353/0430fd04-3722-4883-be35-b44cd5fdfc2b)