[GH-ISSUE #1932] Security Alert This connection is not secure. Please avoid entering sensitive information until TLS is activated for data protection. What is it and how to fix it? #1317

Closed
opened 2026-10-31 20:17:58 +07:00 by bsakaguchi · 10 comments
Owner

Originally created by @Avaisov on GitHub (Feb 27, 2024).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/1932

Welcome

  • Yes, I'm using the latest major release. Only such installations are supported.
  • Yes, I'm using the supported system. Only such systems are supported.
  • Yes, I have read all WIKI document,nothing can help me in my problem.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, log, etc).

Description of the problem,screencshot would be good

Security Alert This connection is not secure. Please avoid entering sensitive information until TLS is activated for data protection. What is it and how to fix it?
Снимок экрана 2024-02-27 в 15 53 09

Version of 3x-ui

# Paste here

x-ui log reports or xray log

# paste log here
Originally created by @Avaisov on GitHub (Feb 27, 2024). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/1932 ### Welcome - [X] Yes, I'm using the latest major release. Only such installations are supported. - [X] Yes, I'm using the supported system. Only such systems are supported. - [X] Yes, I have read all WIKI document,nothing can help me in my problem. - [X] Yes, I've searched similar issues on GitHub and didn't find any. - [X] Yes, I've included all information below (version, config, log, etc). ### Description of the problem,screencshot would be good Security Alert This connection is not secure. Please avoid entering sensitive information until TLS is activated for data protection. What is it and how to fix it? <img width="1676" alt="Снимок экрана 2024-02-27 в 15 53 09" src="https://github.com/MHSanaei/3x-ui/assets/120126001/6de30c96-b267-4f87-848e-9029f2c43910"> ### Version of 3x-ui <details> ```console # Paste here ``` </details> ### x-ui log reports or xray log <details> ```console # paste log here ``` </details>
Author
Owner

@AsunaYukky commented on GitHub (Feb 27, 2024):

@Avaisov
Thats cause you use http connection to webpanel, not https.
If you have domain connected to server you just need to create ssl certificate from letsencrypt using 3x-ui bash menu. If you do not have a domain (use only ip address) - you can create self-signed certificate. I wrote an instruction in wiki, how to do this. https://github.com/MHSanaei/3x-ui/wiki/How-to-create-self%E2%80%90signed-SSL-certificate-for-3X%E2%80%90UI-webpanel-(also-if-you-don't-use-domains)
@MHSanaei may be you can add this link to readme.md, cause I think that after update to 2.2 it will be many questions about this.

<!-- gh-comment-id:1966507431 --> @AsunaYukky commented on GitHub (Feb 27, 2024): @Avaisov Thats cause you use http connection to webpanel, not https. If you have domain connected to server you just need to create ssl certificate from letsencrypt using 3x-ui bash menu. If you do not have a domain (use only ip address) - you can create self-signed certificate. I wrote an instruction in wiki, how to do this. https://github.com/MHSanaei/3x-ui/wiki/How-to-create-self%E2%80%90signed-SSL-certificate-for-3X%E2%80%90UI-webpanel-(also-if-you-don't-use-domains) @MHSanaei may be you can add this link to readme.md, cause I think that after update to 2.2 it will be many questions about this.
Author
Owner

@Avaisov commented on GitHub (Feb 27, 2024):

@AsunaYukky Thanks a lot for the answer and instructions, I will try. Can you tell me if the lack of a certificate has a strong impact on security and performance?

<!-- gh-comment-id:1966779975 --> @Avaisov commented on GitHub (Feb 27, 2024): @AsunaYukky Thanks a lot for the answer and instructions, I will try. Can you tell me if the lack of a certificate has a strong impact on security and performance?
Author
Owner

@AsunaYukky commented on GitHub (Feb 27, 2024):

@Avaisov when you use http connection to webpanel - your traffic is not encoding, and everybody between you and server can see all the data, that you put in fields (like login - pass), and all the data, that webpanel gives to you (like qr codes, subscription, etc..). https solves this problem.

<!-- gh-comment-id:1967536432 --> @AsunaYukky commented on GitHub (Feb 27, 2024): @Avaisov when you use http connection to webpanel - your traffic is not encoding, and everybody between you and server can see all the data, that you put in fields (like login - pass), and all the data, that webpanel gives to you (like qr codes, subscription, etc..). https solves this problem.
Author
Owner

@Avaisov commented on GitHub (Feb 28, 2024):

@AsunaYukky

Can you tell me why I can't fix the problem?
I go to the terminal command prompt (macos)
I log in to the server via the ssh@ my ip command
Entering the commands
cd /usr/local/x-ui mkdir ssl-srt cd ssl-srt openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 3650
94.131.110.201
openssl rsa -in key.pem -out key.un.pem -passin pass:my password

Then I go into the panel and type
in /us/local/x-ui/ssl-srt/cert.pem
/usr/local/x-ui/ssl-srt/key.un.pem

but I can't save and reload the panel, I'm taking off the screenshot
Снимок экрана 2024-02-28 в 12 41 02

I check I have files in directory
root@. :~# cd /usr/local/x-ui/ssl-srt/
root@v :/usr/local/x-ui/ssl-srt# ls .
cert.pem key.pem key.un.pem

<!-- gh-comment-id:1968603051 --> @Avaisov commented on GitHub (Feb 28, 2024): @AsunaYukky Can you tell me why I can't fix the problem? I go to the terminal command prompt (macos) I log in to the server via the ssh@ my ip command Entering the commands cd /usr/local/x-ui mkdir ssl-srt cd ssl-srt openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 3650 94.131.110.201 openssl rsa -in key.pem -out key.un.pem -passin pass:my password Then I go into the panel and type in /us/local/x-ui/ssl-srt/cert.pem /usr/local/x-ui/ssl-srt/key.un.pem but I can't save and reload the panel, I'm taking off the screenshot <img width="1460" alt="Снимок экрана 2024-02-28 в 12 41 02" src="https://github.com/MHSanaei/3x-ui/assets/120126001/ae0ae320-a264-4581-a538-9d69b2a0fbc5"> I check I have files in directory root@. :~# cd /usr/local/x-ui/ssl-srt/ root@v :/usr/local/x-ui/ssl-srt# ls . cert.pem key.pem key.un.pem
Author
Owner

@AsunaYukky commented on GitHub (Feb 28, 2024):

@Avaisov
Wrong way man. You wrote /us/... , but must be /usr/... at Public key field

<!-- gh-comment-id:1968639312 --> @AsunaYukky commented on GitHub (Feb 28, 2024): @Avaisov Wrong way man. You wrote /us/... , but must be /usr/... at Public key field
Author
Owner

@Avaisov commented on GitHub (Feb 28, 2024):

@AsunaYukky Yes thank you, now I have this screen
Снимок экрана 2024-02-28 в 13 08 15

<!-- gh-comment-id:1968646433 --> @Avaisov commented on GitHub (Feb 28, 2024): @AsunaYukky Yes thank you, now I have this screen <img width="1457" alt="Снимок экрана 2024-02-28 в 13 08 15" src="https://github.com/MHSanaei/3x-ui/assets/120126001/bf5d28f7-1a8d-4964-9854-77943c11b200">
Author
Owner

@Avaisov commented on GitHub (Feb 28, 2024):

I'm sorry, everything is working fine. Thank you very much!

<!-- gh-comment-id:1968675137 --> @Avaisov commented on GitHub (Feb 28, 2024): I'm sorry, everything is working fine. Thank you very much!
Author
Owner

@AsunaYukky commented on GitHub (Feb 28, 2024):

@Avaisov it tells that you have default configuration at "URI path" field . Just change it to something additional, like /mysuperpanel/ =),

<!-- gh-comment-id:1968678085 --> @AsunaYukky commented on GitHub (Feb 28, 2024): @Avaisov it tells that you have default configuration at "URI path" field . Just change it to something additional, like /mysuperpanel/ =),
Author
Owner

@MBurtsev commented on GitHub (May 31, 2025):

@Avaisov how to do this. https://github.com/MHSanaei/3x-ui/wiki/How-to-create-self%E2%80%90signed-SSL-certificate-for-3X%E2%80%90UI-webpanel-(also-if-you-don't-use-domains) @MHSanaei may be you can add this link to readme.md, cause I think that after update to 2.2 it will be many questions about this.

This link not work

<!-- gh-comment-id:2925370005 --> @MBurtsev commented on GitHub (May 31, 2025): > [@Avaisov](https://github.com/Avaisov) how to do this. https://github.com/MHSanaei/3x-ui/wiki/How-to-create-self%E2%80%90signed-SSL-certificate-for-3X%E2%80%90UI-webpanel-(also-if-you-don't-use-domains) [@MHSanaei](https://github.com/MHSanaei) may be you can add this link to readme.md, cause I think that after update to 2.2 it will be many questions about this. This link not work
Author
Owner

@MBurtsev commented on GitHub (May 31, 2025):

I thought 3X-UI was meant to automate and simplify the VPN setup process. Why not make life easier for users and automate this process? I've already spent an hour on this, but I still haven't found a solution.

<!-- gh-comment-id:2925377198 --> @MBurtsev commented on GitHub (May 31, 2025): I thought 3X-UI was meant to automate and simplify the VPN setup process. Why not make life easier for users and automate this process? I've already spent an hour on this, but I still haven't found a solution.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#1317
No description provided.