changed images to actual

AsunaYukky
2024-03-06 11:45:18 +11:00
parent 3315166d06
commit 902a8ad44e

@@ -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.<br />
## Lets do this!<br />
Go to server bash.<br />
I create folder inside /usr/local/x-ui/ directory for cert's.<br />
I create folder inside /root directory for cert's.<br />
`cd /root`<br />
`mkdir ssl-srt`<br />
`cd ssl-srt`<br />
@@ -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`<br />
### **WARN**<br />
It will ask you for PEM pass phrase - remember it! It will bee needed for next step! Or use easy - I use "1234"<br />
![1](https://github.com/MHSanaei/3x-ui/assets/83214353/7dec3195-4eaa-4ea8-a486-e1b4ca2115a5)<br />
![image](https://github.com/MHSanaei/3x-ui/assets/83214353/cb469abd-36f8-4119-aee6-412ba725f4f8)<br />
Next step - input data for certificate. I leave all blank. <br />
**!!!BUT!!!** <br />
You need to input **your real IP address into Common Name field**. <br />
![2](https://github.com/MHSanaei/3x-ui/assets/83214353/7dcb0a8c-6599-44a8-80d7-e6e35e4c827f)<br />
![image](https://github.com/MHSanaei/3x-ui/assets/83214353/fb00a85f-e979-41d4-93c2-5230dcdb8d7f)<br />
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.<br />
Let's unlock it! <br />
`openssl rsa -in key.pem -out key.un.pem -passin pass:YOUR PASS PHRASE` <br />
![image](https://github.com/MHSanaei/3x-ui/assets/83214353/bd8609f5-7ac1-4831-ac36-b32e46f8a282) <br />
![image](https://github.com/MHSanaei/3x-ui/assets/83214353/bd83446d-3b80-46c3-a09c-b0eb70f0268f)<br />
## And the final round - install it into the WebPanel.<br />
![image](https://github.com/MHSanaei/3x-ui/assets/83214353/0430fd04-3722-4883-be35-b44cd5fdfc2b)