Select Page

How to accept Bitcoin on a website using Electrum and Letsencrypt

This tutorial will show you how to accept Bitcoin on a website with SSL signed payment requests using Electrum, required is a shell access and enough permission to install electrum

  • A webserver serving static HTML
  • A SSL certificate (signed by a CA)
  • Electrum version >= 2.6

Install dependencies:

sudo apt-get install python3-setuptools python3-pyqt5 python3-pip

Install Electrum:

sudo pip3 install https://download.electrum.org/3.0.3/Electrum-3.0.3.tar.gz

then run on your server

electrum create electrum daemon start electrum setconfig ssl_privkey /etc/letsencrypt/live/xxxxxx.com/privkey.pem electrum setconfig ssl_chain /etc/letsencrypt/live/xxxxxx.com/cert.pem  electrum setconfig requests_dir /home/xxxxxx.com/httpdocs/r electrum setconfig url_rewrite "['file:///home/xxxxxx.com/httpdocs/','https://www.xxxxxx.com/']" electrum addrequest 0.015 -m "Payment for Acme.inc service" 

this will return a json with the URL to present to your customers. eg. >https://www.xxxxxx.org/r/index.html?id=7c2888541a

More here

About The Author

I worked with various Insurances companies across Switzerland on online applications handling billion premium volumes. I love to continuously spark my creativity in many different and challenging open-source projects fueled by my great passion for innovation and blockchain technology.In my technical role as a senior software engineer and Blockchain consultant, I help to define and implement innovative solutions in the scope of both blockchain and traditional products, solutions, and services. I can support the full spectrum of software development activities, starting from analyzing ideas and business cases and up to the production deployment of the solutions.I'm the Founder and CEO of Disruptr GmbH.

Categories