# httppize

> Access as http any https resource. Let it be https with self sign certificate or https with client certificate or regular https

Latest version **1.0.1** (published 2017-11-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install httppize
pnpm add httppize
yarn add httppize
bun add httppize
```

Provides the command `httppize`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-11-17 |
| First published | 2017-11-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Known vulnerabilities | 0 (+3 in 3 direct dependencies) |
| Install scripts | no |
| Author | Fernando Reis Guimaraes |
| Maintainers | fernandobhz |
| Keywords | client, certificate, http, remove, access |

## Links

- npm: https://www.npmjs.com/package/httppize
- Repository: https://github.com/fernandobhz/httppize
- Homepage: https://github.com/fernandobhz/httppize#readme
- Issues: https://github.com/fernandobhz/httppize/issues
- npm.io page: https://npm.io/package/httppize

## Dependencies (9)

- [fs](https://npm.io/package/fs.md) 0.0.1-security
- [home](https://npm.io/package/home.md) ^1.0.1
- [http](https://npm.io/package/http.md) 0.0.0
- [path](https://npm.io/package/path.md) ^0.12.7
- [express](https://npm.io/package/express.md) ^4.16.2
- [request](https://npm.io/package/request.md) ^2.83.0
- [greenlock](https://npm.io/package/greenlock.md) ^2.1.17
- [http-proxy](https://npm.io/package/http-proxy.md) ^1.16.2
- [httpolyglot](https://npm.io/package/httpolyglot.md) ^0.1.2

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-11-17
- 1.0.0 — 2017-11-17

## README

# HTTPpize
 
A proxy that handle https for you, even with https with client certificate.  

[Brazilian Portuguese](https://github.com/fernandobhz/httpizar)

# 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](https://www.youtube.com/watch?v=esD7hIJORVI&t=173s)  
[Efetuando consulta de notas fiscais eletronicas emitidas (nfse) via web services](https://www.youtube.com/watch?v=HBSLTN0P4LM&t=1s)  
[Efetuando consulta de notas fiscais eletronicas emitidas (nfse) via wcf](https://www.youtube.com/watch?v=OFU8dfHqQlU&t=1s)  
[Como referenciar webservice nota fiscal eletronica (nfse) de belo horizonte no visual studio 2013](https://www.youtube.com/watch?v=mHu9YuoxVgk)   


# 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](https://www.sslshopper.com/ssl-converter.html)  
Use at your own risk, that is third party tool

# Credits
  
[www.fernandobhz.com.br](http://www.fernandobhz.com.br)  
[www.fernandobhz.com](http://www.fernandobhz.com)  
[fernandobhz.github.io](http://fernandobhz.github.io)  

# Donate

[![paypaldonate](https://www.paypalobjects.com/pt_BR/BR/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RNDJKX9J6TBRW)


# 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

---
_Source: https://npm.io/package/httppize · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
