Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

local-ssl-proxy

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

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
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
125K
increased by3.44%
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc