Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting up an Agent with HTTPS and Self-Signed Certificate
#1
I'd like to run hashtopolis using HTTPS and got everything setup on the server side. How would I resolve the self-signed certificate error on the agent side?

python3 hashtopolis.zip
Starting client 's3-python-0.4.0'...
Please enter the url to the API of your Hashtopolis installation:
https://XXX.XXX.XXX.XXX/api/server.php
Error occurred: HTTPSConnectionPool(host='206.189.235.84', port=443): Max retrie                                                                    s exceeded with url: /api/server.php (Caused by SSLError(SSLCertVerificationErro                                                                    r(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed ce                                                                    rtificate (_ssl.c:1056)')))
Connection test failed!
Reply
#2
From the Discord Hashtopolis Channel by hops:

There's currently no built-in option to do that. Adding the self-signed certificate to your OS's CA store might help.
If not you can try to add the following line after this one: https://github.com/s3inlc/hashtopolis-ag...__.py#L308
session.verify = '/path/client.cert'
Reply
#3
I was able to add a new agent with HTTPS & self signed cert by adding the following line after this one: https://github.com/s3inlc/hashtopolis-ag...__.py#L126
session.verify = False

You'll receive a InsecureRequestWarning, but you'll be able to enter the voucher after that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)