Ngrok 1.7 build error
The ngrok server has been rebuilt recently. Refer to: https://zhuanlan.zhihu.com/p/33794707
Since the version of ngrok V1 has not been maintained for a long time, after compilation, the server encountered an error at startup: Remote Error: TLS: bad certificate
after searching the Internet for a long time, some people said it was the problem of the golang version, After reducing the version of golang from 1.17 to 1.9, it is still not solved. I accidentally found the log prompt x509 on the client: certificate is valid for XXX, not ngrokd.ngrok.com. I found that it may be the problem of the certificate domain name.
After searching the source code, I found that the default domain name address is ngrokd.ngrok.com, so I found a solution,
find the client source code and change the configuration. The file is:
vim ./src/ngrok/client/model.go
The defaultserveraddr in line 24 is changed to its own server domain name and port
When recompiling the self signed certificate, the domain name of the certificate must exactly match the default address here, otherwise an error will be reported.
Read More:
- [vite] http proxy error: Error: self signed certificate in certificate chain vite
- [Solved] svn Error: E230001: Server SSL certificate verification failed: certificate issued
- SVN Error:svn: E230001: Server SSL certificate verification failed: certificate issued
- git submodule add Error: SSL certificate problem unable to get local issuer certificate
- Mac IDEA Connect SVN Error: E230001: Server SSL certificate verification failed: certificate issued
- Git push Submit to Remote Error: “remote: Support for password authentication was removed on August 13, 2021.“
- [Solved] Remote URL test failed: Could not read from remote repository.
- Git Error: failed: The TLS connection was non-properly terminated
- Jenkins uses NPM to build Vue error, and the manual build is normal
- [Solved] Git Clone Error: The TLS connection was non-properly terminated.
- [Solved] zabbix Error: Cannot perform request: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small
- [Solved] Qt Error: qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
- [Solved] Error response from daemon: Get “*“: x509: certificate signed by unknown authority
- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed [Solved]
- [Solved] Git Error: client_global_hostkeys_private_confirm: server gave bad signature for RSA key 0
- [Solved] pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
- OpenCV(-206:Bad flag (parameter or structure field)) Unrecognized or unsupported array type [How to Solve]
- [Solved] Docker Error: bad interpreter: Permission denied
- [Solved] Git error: bad signature 0x00000000 fatal: index file corrupt
- [Solved] Vscode Connect to the remote server error: permission denied (public key)