mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-08 05:14:33 +00:00
changed images to actual
@@ -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 />
|
||||
<br />
|
||||
<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 />
|
||||
<br />
|
||||
<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 />
|
||||
 <br />
|
||||
<br />
|
||||
## And the final round - install it into the WebPanel.<br />
|
||||

|
||||
|
||||
|
||||
Reference in New Issue
Block a user