Skip to content

Adimvicky/self-signed-cert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

self-signed-cert

A utility module for getting a self-signed ssl certificate for development of secure servers

API

const https = require('https')
const { key, cert } = require('self-signed-cert');

let serverOptions = {
    key,
    cert
}

const server = https.createServer(serverOptions,(req,res) => {
    // Your awesome secure server logic 
});

server.listen(8080,() => {
    console.log('Your awesome server is listening on localhost:8080')
});

About

Quickly get self-signed ssl certificates for developing secure servers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published