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 🙏

© 2024 – Pkg Stats / Ryan Hefner

pgp-ssl

v1.0.2

Published

Generate SSL certificates using PGP key pairs for Apache or Nginx

Downloads

23

Readme

PGP-SSL: SSL Certificates with PGP Key Generation

pgp-ssl is a Node.js CLI tool that generates PGP keys using ECC or RSA and creates SSL certificates for use with Apache or Nginx. It supports Debian, Ubuntu, and CentOS operating systems.

Features

  • PGP Key Generation: ECC or RSA.
  • Passphrase Protection: Optional encryption of the PGP private key.
  • SSL Certificate Creation: Automates configuration for Apache or Nginx.

Installation

Install via npm:

npm install pgp-ssl

Run the tool using npx:

npx pgp-ssl start

Usage

To display the help menu:

npx pgp-ssl help

To generate PGP keys and SSL certificates:

npx pgp-ssl start

You will be prompted for:

  • Name (required)
  • Email (required)
  • Passphrase (optional)
  • Domain (required)
  • Operating System
  • Web Server (Apache or Nginx)
  • Key Type (RSA or ECC)

Example:

npx pgp-ssl start
Enter your name: John Doe
Enter your email: [email protected]
Enter a passphrase to protect your private key (leave empty for no passphrase):
Enter the domain for the SSL certificate: example.com
Which operating system are you using? Debian
Which web server are you using? Nginx
Choose key type for SSL certificate: ECC
Choose ECC curve: prime256v1

Dependencies

  • Node.js: Requires version 12.x or above.
  • OpenPGP.js: For PGP key generation.
  • OpenSSL: Used for SSL certificates.

Ensure OpenSSL is installed and accessible via the command line.

Installing OpenSSL

For Debian/Ubuntu:

sudo apt-get install openssl

For CentOS:

sudo yum install openssl

Security Considerations

  • Passphrase Protection: Always use a strong passphrase to protect your PGP private key.
  • Certificate Location: Certificates are stored in /etc/ssl/, and configuration files are stored in /etc/apache2/ (for Apache) or /etc/nginx/ (for Nginx).

Contributing

Fork the repository on GitLab, make your changes, and submit a pull request.

License

This project is licensed under the MIT License.