Error message "You cannot login over an insecure connection. Please use HTTPS or Tor." misleading
See original GitHub issueDescribe the bug When calling btcpayserver from the web I get the notification “You cannot login over an insecure connection. Please use HTTPS or Tor.” although an SSL certificate is installed. Even the browser says that an SSL certificate is installed.
To reproduce the bug Steps to reproduce the reported bug:
- Install this package https://aur.archlinux.org/packages/btcpayserver-git/ which I made.
- Follow these installation instructions: https://aur.archlinux.org/cgit/aur.git/tree/README.md?h=btcpayserver-git
- Run nbxplorer and btcpayserver in tmux.
- Call the website.
Screenshots The error:
The valid certificate:
Your BTCPay Environment (please complete the following information):
- BTCPay Server Version: 1.0.6.7
- Deployment Method: Manual, AUR package
- Browser: Brave
Settings file for btcpayserver
I tried giving the setting “httpscertificatefilepath” all possible certificates in /etc/letsencrypt/live/“subomain.domain.me” but this does not solve the problem. In that case, btcpayserver threw exceptions with log message fail: Configuration: The https certificate file could not be found at privkey.pem.
.
### Global settings ###
#network=mainnet
### Server settings ###
#port=23000
#bind=127.0.0.1
#httpscertificatefilepath=devtest.pfx
#httpscertificatefilepassword=toto
### Database ###
#postgres=User ID=root;Password=myPassword;Host=localhost;Port=5432;Database=myDataBase;
#mysql=User ID=root;Password=myPassword;Host=localhost;Port=3306;Database=myDataBase;
sqlitefile=sqlite.db
### NBXplorer settings ###
#BTC.explorer.url=http://127.0.0.1:24444/
#BTC.explorer.cookiefile=/home/user/.nbxplorer/Main/.cookie
#BTC.lightning=/root/.lightning/lightning-rpc
#BTC.lightning=https://apitoken:API_TOKEN_SECRET@charge.example.com/
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (7 by maintainers)
Top GitHub Comments
Thanks for posting the solution! The error is meant for end users not system admins so. I fear such an advanced message may intimidate new users. Maybe we can post a more precise info on the server logs
On Thu, 4 Mar 2021, 09:30 Matheus Gabriel Werny de Lima, < notifications@github.com> wrote:
This may be the fix to this problem - https://docs.btcpayserver.org/ChangeDomain/