1.0.1 • Published 6 years ago

httppize v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

HTTPpize

A proxy that handle https for you, even with https with client certificate.

Brazilian Portuguese

Motivation

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

Installation

npm install -g httppize

Usage

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

Credits

www.fernandobhz.com.br
www.fernandobhz.com
fernandobhz.github.io

Donate

paypaldonate

Live demo

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