-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make rpc from http to https #715
Comments
I can see that you already have the HTTPS setup https://maiko.*/ domain (the screenshot you attached is poorly censored). So all you really have to do is copy the existing SSL configuration to your :666 port. SSL-related configuration begins with the You will also need to edit your |
oh.... i forget to updated this is updated code and then everything not work http https both rpc are didn't work it's just show error when i connect to my rpc did i also need to modify my geth config.toml ? server { listen 666 ssl; server_name localhost; ssl_certificate /etc/nginx/ssl/nginx.crt; proxy_http_version 1.1; location ^~ /h { proxy_http_version 1.1; |
i am really that's there is one people can solve my problem i should paid u a coffee! but there is some problem happen my code now is and after nginx reload the result is yes http > https success but mobile metamask still have problem now is didn't match chain ID but chrome extension is ok and wss or ws rpc didn't work now server { listen 666 ssl; location ^~ /w { location ^~ /h { proxy_http_version 1.1; |
Okay, so it looks like you also need to use The file you are looking for is probably in the same folder as your |
Hi i did have ca_bundle.crt in folder ssl |
Show your configuration. I still have not detected the ca_bundle from the openssl check. |
yes i did reload, the SSL Service which i use is "ZeroSSL" any possible chance from here? server { listen 666 ssl; server_name localhost; location ^~ /w { location ^~ /h { |
One more idea, change |
same T__T |
Do you have any other configuration files containing |
other conf didn't include ssl code, and other conf for other user i am listen other port |
Try this (probably won't work if the bundle contains only CA certs):
Yup, try downloading the NGINX format. |
I have just found a tutorial mentioning that you would need to merge the cert with the ca_bundle:
(it's possible that the order matters so please try the above command as well as with the and then:
|
you make it!!! |
Nice! Just a note, if you happen to renew your certificate in the future you would probably have to run the 'merge' again. It would be good to set up some sort of automation for it. Or maybe switch to My donation address: https://bscscan.com/address/0xD155E40a77e64D6834efe827306E49Ea936d8c3F |
send~ |
and by the way, do you have any easy way to remote centos7 from windows11 |
Like remote desktop? Search for "RDP CensOS7". When selecting the desktop environment go for xfce as it's very lightweight and fast. Personally, I wouldn't really recommend setting up RDP on your server (if you REALLY don't need it). It's just one more headache and SSH is very powerful on its own. |
yep... i think i really need remote desktop cuz website remote it's so slow i used GNOME Desktop already will any change for my system if i change to xfce? |
GNOME is one of the most-demanding desktop environments to run. XFCE is quite the opposite of that - it's not as 'pretty' though. Check out some screenshots and compare. |
alright... i'd do research to know how to change to XFCE |
Basically, keep one SSL configuration per |
okay i will try later |
Hi it's me again i am trying to using second domain but fail nginx.conf include /etc/nginx/A.conf <= for domain A it's ok i also cat certificate.crt and ca_bundle for A .conf ssl_certificate /etc/nginx/ssl/full.crt; server_name domainA; for B.conf ssl_certificate /etc/nginx/ssl2/full.crt; server_name DomainB; I couldn't find the problem Q_Q |
Check whether your |
yes...the problem is i always cat ca_bundle first no i change the priority it's work ! |
Hi i just build a fullnode
and until now it's running well
it's can running on metamask (Chrome extensions)
but if i use mobile phone metamask it's require "https"
so the problem is how to make my rpc from http to https
i got sutck for at least one day :(
and i am using "nginx"
this is my nginx.conf
server {
listen 666;
server_name localhost;
location ^~ /w {
}
location ^~ /h {
access_log /etc/nginx/log/Maiko.access.log maiko;
}
}
The text was updated successfully, but these errors were encountered: