https://medium.com/@paul.pietzko/trust-self-signed-certificates-5a79d409da9b
this is the best solution I could find for this issue