From d8bf307106f3a566be7127ae470814568bdeeee0 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Thu, 27 Jun 2024 12:55:26 +0200 Subject: [PATCH] =?UTF-8?q?Destroyed=20How=20to=20create=20self=E2=80=90si?= =?UTF-8?q?gned=20SSL=20certificate=20for=203X=E2=80=90UI=20webpanel=20(al?= =?UTF-8?q?so=20if=20you=20don't=20use=20domains)=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...UI-webpanel-(also-if-you-don't-use-domains).md | 30 ------------------- 1 file changed, 30 deletions(-) delete mode 100644 How-to-create-self‐signed-SSL-certificate-for-3X‐UI-webpanel-(also-if-you-don't-use-domains).md 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 deleted file mode 100644 index 876f074..0000000 --- a/How-to-create-self‐signed-SSL-certificate-for-3X‐UI-webpanel-(also-if-you-don't-use-domains).md +++ /dev/null @@ -1,30 +0,0 @@ -## Hi team!
-**From version 2.2 3X-UI make warning for me, that I am not use TLS when I communicate with WebPanel.**
-I know, that it is security issue for me, but I can't use LetsEncrypt certificate, cause I am not use domains.
-Solution - make self-signed certificate for my IP address.
-## Lets do this!
-Go to server bash.
-I create folder inside /root directory for cert's.
-`cd /root`
-`mkdir ssl-srt`
-`cd ssl-srt`
-Next step - create certificates. I make it for 10 years, if you need more or less - just change -days option.
-`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"
-![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**.
-![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/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) - -## Final -After save and reboot Webpanel you will take an error about self-signed certificate, just ignore it. But, you will not see TLS error inside - your connection will be encrypted!
-All complete!
-Good Luck!