Geth supporting SSL using reverse proxy server @Mobilefish
Geth supporting SSL using reverse proxy server  @Mobilefish
Uploaded September 2017 | Updated September 2026, 2 weeks ago
At this moment Geth does not support SSL.
A reverse proxy server can be used to access a Geth node by SSL.
This video explains how to setup a very simple reverse proxy server.

Prerequisites
---------------------
To setup a reverse proxy server you need a SSL certificate.
In this video a reverse proxy server will be setup for testing and development purpose.
Therefore the SSL certificate does not need to be issued by a "real" Certificate Authority.
A self signed SSL certificate will suffice.
In this video I will be using an already created self signed SSL certificate.
How I created my own self signed SSL certificate is explained in YouTube video:
"Create self signed certificates with Subject Alternative Names"
youtu.be/qoS4bLmstlk

I assume you already have installed the node package manager. See:
nodejs.org

Problem description
--------------------------------
A web application can access a local running Geth node using the web3.js library.
Code to create an injected web3 instance:
var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));

But when the web application is secured (https) the Geth node can be accessed by
http://localhost:8545
but you will get a warning message.

Example:
sand.mobilefish.com/download/ethereum/ethereum_show_all_accounts.html
To solve the problem, the Geth node should be accessible by https://localhost:8545.
However this is not possible, at least not in Geth v1.7 (maybe in the future?)

Solution
-------------
The solution is to setup a reverse proxy server.

- Web app:
sand.mobilefish.com/download/ethereum/ethereum_show_all_accounts.html
Web3.providers.HttpProvider(“https://proxy.mobilefish.com:9070”)

- Reverse proxy server:
Listen: https://proxy.mobilefish.com:9070
Target: http://localhost:8545

- Geth node:
http://localhost:8545

Setup reverse proxy server
------------------------------------------
The procedure described is also documented at:
mobilefish.com/developer/blockchain blockchain_quickguide_geth_suppor t_ssl.html


Check out all my other Ethereum related tutorial videos:
goo.gl/eNJVXe

Subscribe to my YouTube channel:
goo.gl/61NFzK

The presentation used in this video tutorial can be found at:
mobilefish.com/developer/blockchain/blockchain_quickguide_ethereum_related_tutorials.html


#mobilefish #howto #ethereum
Geth supporting SSL using reverse proxy serverIOTA tutorial 26.1: Trinity Wallet Seed and Two-Factor Authentication Part 2BTW cursus 5:  Unieregeling / OSS-regeling voor digitale diensten binnen de EUBTW cursus 4: B2C btw-regels voor digitale diensten binnen de EUMetaMask: How to restore your accountsLoRa/LoRaWAN tutorial 40: N1201SA Vector Impedance AnalyserLoRa/LoRaWAN tutorial 22: OTAA and Uplink Demonstration With The Things NetworkSend humidity and temperature data from DHT11 sensor to The Things Network, part 7LoRa/LoRaWAN tutorial 37: Balanced and Unbalanced Feed Lines and Antennas and BalunLoRa/LoRaWAN tutorial 42: Monopole Antenna and Ground PlaneDownload, configure and startup single channel Lora gateway, part 3LoRa/LoRaWAN tutorial 5: Decibel, dBm, dBi, dBd
Mobilefish.com |

Geth supporting SSL using reverse proxy server

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER