Hashtopolis Forum
Setting up an Agent with HTTPS and Self-Signed Certificate - Printable Version

+- Hashtopolis Forum (https://hashtopolis.org)
+-- Forum: Support (https://hashtopolis.org/forum-1.html)
+--- Forum: Problems (https://hashtopolis.org/forum-2.html)
+--- Thread: Setting up an Agent with HTTPS and Self-Signed Certificate (/thread-208.html)



Setting up an Agent with HTTPS and Self-Signed Certificate - ledgerops - 03-27-2019

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!


RE: Setting up an Agent with HTTPS and Self-Signed Certificate - s3in!c - 03-27-2019

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-agent-python/blob/master/__main__.py#L308
session.verify = '/path/client.cert'


RE: Setting up an Agent with HTTPS and Self-Signed Certificate - pgillespie20 - 05-16-2019

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-agent-python/blob/master/__main__.py#L126
session.verify = False

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