
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
create-cert-files
Advanced tools
Create self signed cert files to be used with webpack-dev-server or browsersync
Create self signed cert files to be used with webpack-dev-server or browsersync
npm install --dev create-cert-files browser-sync
const fakeCert = require('create-cert-files')()
const browserSync = require('browser-sync')
browserSync.init({
https: {
key: fakeCert.key,
cert: fakeCert.cert
}
})
npm install --save-dev create-cert-files
In your webpack.config.js
const fakeCert = require('create-cert-files')(options)
const fs = require('fs')
module.exports = {
devServer: {
https: {
key: fs.readFileSync(fakeCert.key),
cert: fs.readFileSync(fakeCert.cert)
}
}
}
Path of key file
Path of cert file
An array of subjectAltName
[
{
// type 2 is DNS
type: 2,
value: 'localhost'
},
{
// type 7 is IP
type: 7,
ip: '127.0.0.1'
}
]
FAQs
Create self signed cert files to be used with webpack-dev-server or browsersync
We found that create-cert-files demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.