npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@krish-59/ssl-cli

v1.0.0

Published

CLI tool for creating and managing SSL certificates

Readme

SSL CLI Tool

A powerful command-line tool for managing SSL certificates, both for local development and production environments. This tool simplifies the process of creating and managing SSL certificates, including setting up Nginx with Let's Encrypt certificates.

Features

  • 🚀 Create local Certificate Authority (CA) for development
  • 🔐 Generate SSL certificates for domains
  • 🌐 Set up Nginx with Let's Encrypt certificates
  • 🎨 Beautiful CLI interface with animations and colors
  • 🔄 Automatic certificate renewal support
  • 🛠️ Comprehensive error handling and user guidance

Installation

# Install globally
npm install -g ssl-cli

# Or install locally
npm install ssl-cli

Prerequisites

  • Node.js (v14 or higher)
  • OpenSSL (for local certificate generation)
  • Nginx (for production setup)
  • Certbot (for Let's Encrypt certificates)

Available Commands

1. Basic Help Command

ssl-cli --help
  • Shows all available commands and their descriptions
  • Provides basic usage information
  • Lists command-line options

2. OpenSSL Check Command

ssl-cli check-openssl
  • Verifies if OpenSSL is installed on your system
  • Checks if OpenSSL is properly configured in PATH
  • Displays the installed OpenSSL version
  • Provides installation instructions if OpenSSL is missing

3. Local CA Creation Command

ssl-cli create-local-ca
  • Creates a local Certificate Authority (CA) for development
  • Generates a CA private key (myCA.key)
  • Creates a CA certificate (myCA.pem)
  • Stores files in ~/certs directory
  • Provides platform-specific installation instructions
  • Features:
    • Password protection for CA key
    • 5-year validity period
    • Secure key generation (2048-bit RSA)
    • Overwrite protection for existing CA files

4. Domain Certificate Creation Command

ssl-cli create-cert
  • Creates SSL certificates for specific domains
  • Generates certificates signed by your local CA
  • Features:
    • Domain name validation
    • Private key generation
    • Certificate signing request (CSR) creation
    • Subject Alternative Names (SAN) support
    • Overwrite protection for existing certificates
  • Creates files:
    • domain.key: Private key
    • domain.crt: Certificate
    • domain.csr: Certificate signing request
    • domain.ext: Extension file

5. Nginx SSL Setup Command

ssl-cli setup-nginx
  • Sets up Nginx with Let's Encrypt certificates
  • Features:
    • Nginx installation check and setup
    • Certbot installation and configuration
    • DNS verification setup
    • Automatic certificate renewal
    • Custom port configuration
  • Steps:
    1. Checks system requirements
    2. Installs necessary packages
    3. Configures Nginx
    4. Sets up DNS verification
    5. Generates SSL certificates
    6. Configures automatic renewal

Common Use Cases

Local Development Setup

# 1. Create local CA
ssl-cli create-local-ca

# 2. Install CA certificate in your system/browser

# 3. Create certificates for your domains
ssl-cli create-cert

Production Setup

# Set up Nginx with Let's Encrypt
ssl-cli setup-nginx

Troubleshooting

# Check OpenSSL installation
ssl-cli check-openssl

Features in Detail

Local Certificate Authority

  • Generates a self-signed CA certificate
  • Creates private keys with secure encryption
  • Provides platform-specific installation instructions
  • Supports certificate overwrite protection

Domain Certificates

  • Generates certificates signed by your local CA
  • Supports multiple domains and subdomains
  • Creates both certificate and private key files
  • Includes proper Subject Alternative Names (SAN)

Nginx Setup

  • Installs and configures Nginx
  • Sets up Let's Encrypt certificates
  • Configures automatic renewal
  • Provides DNS verification guidance
  • Supports custom port configuration

Security Considerations

  • Private keys are generated with strong encryption
  • Certificates include proper security extensions
  • Automatic renewal ensures certificates don't expire
  • Proper file permissions are maintained
  • Sensitive files are excluded from version control

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

ISC

Support

For support, please open an issue in the GitHub repository.