A proxy that handle https for you, even with https with client certificate.
In Brazil, the eletronic invoice systems uses a "self-sign" certificate and client certificates.
Better explanation: Brazil has your own Certificate Autorit, so most libraries recognize that certs as "self-sign".
Beyond that, is not very common client certificates.
So, most programmers get lost trying to talk with gov servers (Sefaz or Town halls).
Some times ago, I publish some videos trying to help others developers
Efetuando consulta de notas fiscais eletronicas emitidas (nfse) via webclient
Efetuando consulta de notas fiscais eletronicas emitidas (nfse) via web services
Efetuando consulta de notas fiscais eletronicas emitidas (nfse) via wcf
Como referenciar webservice nota fiscal eletronica (nfse) de belo horizonte no visual studio 2013
npm install -g httppize
httppize 8443 www.some.domain.com cert.pem
Example with a gov server
httppize 8443 homologacao.sefaz.mt.gov.br cert.pem
Now we can make calls to http://localhost:8443/nfews/v2/services/NfeInutilizacao4?wsdl
HTTpize will hande for the call to https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4?wsdl
If that helps you, think about make a donation to me :)
Pfx to Pem
To convert pfx to pem I use that tool https://www.sslshopper.com/ssl-converter.html
Use at your own risk, that is third party tool
The example above is avaliable at: http://www.fernandobhz.com.br:8443
So making a request to http://www.fernandobhz.com.br:8443/nfews/v2/services/NfeInutilizacao4?wsdl
Will point to https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4?wsdl
Please note, in that way, are you using my certificate to talk, use only for testing