Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How EOS.IO nodes use SSL

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to use SSL on EOS.IO nodes. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.

First of all, you must use DAWN-2018-04-27-ALPHA or above.

If you run nodeos-version, it should output 2594537369. Otherwise, you have to update the version.

To update, run your copy of eos repo:

$cd [EOSIO_DIR] $git pull$ git checkout DAWN-2018-04-27 git submodule update Alpha-- recursive$. / eosio_build.sh$ cd build$ sudo make install

Use Certbot to obtain SSL certificates for your domain:

$sudo add-apt-repository ppa:certbot/certbot$ sudo apt-get update$ sudo apt-get install certbot

Certbot needs to listen for certificate generation on port 80. If you have any services that use it, please stop first and then run:

$sudo certbot certonly-- standalone-- preferred-challenges http-d your-domain

Now copy the generated files to the testnet folder:

$cd [TESTNET_FOLDER] $sudo cp / etc/letsencrypt/live/your-domain/fullchain.pem. $sudo cp / etc/letsencrypt/live/your-domain/privkey.pem. $sudo chown user:user fullchain.pem privkey.pem configuration nodeos

Edit the config.ini file and add the following line:

Https-server-address = 0.0.0.0:443https-certificate-chain-file = / [TESTNET_FOLDER] / fullchain.pemhttps-private-key-file = / [TESTNET_FOLDER] / privkey.pem

If you want to completely disable unsafe HTTP, just set it (commenting out the line won't work)

Http-server-address =

Start nodeos and go to https://your-domain/v1/chain/get_info for inspection! You should see a green lock in chrome, which indicates that the TLS connection is successful.

If there is a problem, look at the first line of the log file stderr.txt.

So much for sharing about how EOS.IO nodes use SSL. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report