🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

local-ssl-proxy

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

local-ssl-proxy

Simple SSL HTTP proxy using a self-signed certificate. Intended for local development only.

2.0.5
latest
100

Supply Chain Security

100

Vulnerability

90

Quality

76

Maintenance

100

License

Version published
Weekly downloads
160K
-0.61%
Maintainers
1
Weekly downloads
 
Created

What is local-ssl-proxy?

The local-ssl-proxy npm package is a tool that allows you to create a local HTTPS proxy server. This is particularly useful for development purposes when you need to test your application over HTTPS without deploying it to a remote server.

What are local-ssl-proxy's main functionalities?

Create a basic HTTPS proxy

This feature allows you to create a basic HTTPS proxy server. You specify the source port (where the proxy listens) and the target port (where the actual server is running). You also provide the paths to your SSL key and certificate.

const localSslProxy = require('local-ssl-proxy');
localSslProxy.start({
  source: 3000,
  target: 3001,
  ssl: {
    key: './path/to/your/private-key.pem',
    cert: './path/to/your/certificate.pem'
  }
});

Custom SSL options

This feature allows you to customize SSL options further by providing additional parameters like passphrase and CA certificate.

const localSslProxy = require('local-ssl-proxy');
localSslProxy.start({
  source: 3000,
  target: 3001,
  ssl: {
    key: './path/to/your/private-key.pem',
    cert: './path/to/your/certificate.pem',
    passphrase: 'yourPassphrase',
    ca: './path/to/your/ca.pem'
  }
});

Logging and debugging

This feature allows you to enable logging and debugging to get more insights into the proxy's operations. You can set the log level to 'debug' to get detailed logs.

const localSslProxy = require('local-ssl-proxy');
localSslProxy.start({
  source: 3000,
  target: 3001,
  ssl: {
    key: './path/to/your/private-key.pem',
    cert: './path/to/your/certificate.pem'
  },
  logLevel: 'debug'
});

Other packages similar to local-ssl-proxy

FAQs

Package last updated on 11 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts