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

@forrest79/dev-certs

v0.2.2

Published

Create SSL wildcards domain certificates with own certificate authority for and ONLY for development.

Downloads

7

Readme

Forrest79/DevCerts

Version Monthly Downloads License npm

Create SSL wildcards domain certificates with own certificate authority for and ONLY for development.

Requirements

Forrest79/DevCerts requires linux with openssl installed.

Installation

The recommended way to install Forrest79/DevCerts is through Composer:

composer require --dev forrest79/dev-certs

or npm:

npm install @forrest79/dev-certs --save-dev

Documentation

To generate certificate just call bin/generate-certificate output_directory domain1 [domain2] [domainX]. For every domain is generated certificate for domain and *.domain.

output_directory is directory, where new certificates will be generated domain1 is main domain and certificates and keys are named by this domain (domain1.crt, domain1.key and domain1.pem are generated in output_directory) domain2 .. domainX are other domains to be included in certificate

For npm run script with npm exec @forrest79/dev-certs.

Example:

I want to generate certificate for domains forrest79.net.test and trmota.cz.test (.test is recommendation from Google).

bin/generate-certificate /home/forrest79/certs forrest79.net.test trmota.cz.test

To proper use in your system is recommended to import certs/rootCA-DEVCERT.crt to certificate storage, after that, all generated certificates will be marked as trusted and you get "green" lock icon. Firefox has own certificates storage system, you must import this directly to Firefox to make generated certificates trusted.

How to import to Windows

  • Enter Win + R | mmc
  • Click on File | Add/Remove Snap-in...
  • In the Add or Remove Snap-ins window, select Certificates and click on the Add button
  • Select the Computer Account radio button when prompted and click on Next
  • Select Local Computer (selected by default) and click on Finish
  • Back in the Add or Remove Snap-ins window, click on OK
  • In the MMC main console, click on the plus (+) symbol to expand the Certificate snap-in.
  • Navigate to Trusted Root Certification Authorities | Certificates pane
  • Right-click within the Certificates panel and click on All Tasks | Import to start the Certificate Import Wizard
  • Follow the wizard to import rootCA-DEVCERTS.crt.

How to import to Linux @todo Please let me know, if you know, how to do this :-)

How to import to MacOS @todo Please let me know, if you know, how to do this :-)

How to import to Firefox Depends on your Firefox version. Search for button View Certificates in Options, Advanced or Encryption. Tab Authority, Import... and choose file rootCA-DEVCERTS.crt.

How to use certificate in nginx Use this in your vhost configuration:

listen 443 ssl;
ssl_certificate /path/to/certificate.crt;
ssl_certificate_key /path/to/certificate.key;

How to use certificate in Apache

Use this in your vhost configuration:

SSLEngine on
SSLCertificateFile "/path/to/certificate.crt"
SSLCertificateKeyFile "/path/to/certificate.key"