HTTPS LOCAL
...
-config <(cat /System/Library/OpenSSL/openssl.cnf \
<(printf '[SAN]\nsubjectAltName=DNS:localhost.caffeinecoding.com,DNS:*.localhost.caffeinecoding.com')) \
HTTPS LOCAL
...
-config <(cat /System/Library/OpenSSL/openssl.cnf \
<(printf '[SAN]\nsubjectAltName=DNS:localhost.caffeinecoding.com,DNS:*.localhost.caffeinecoding.com')) \
HTTPS LOCAL
import https from 'https'
import fs from 'fs'
import resolvePath from 'resolve-path'
// ...
if (env === DEVELOPMENT') {
const options = {
key: fs.readFileSync(resolvePath('./configs/sslcerts/server.key')),
cert: fs.readFileSync(resolvePath('./configs/sslcerts/server.crt'))
}
https.createServer(options, server).listen(port, () => {
logger.debug(msg)
})
}
HTTPS LOCAL
openssl req \
-newkey rsa:2048 \
-x509 \
-nodes \
-keyout server.key \
-new \
-out server.crt \
-subj /CN=localhost \
-reqexts SAN \
-extensions SAN \
-config <(cat /System/Library/OpenSSL/openssl.cnf \
<(printf '[SAN]\nsubjectAltName=DNS:localhost')) \
-sha256 \
-days 3650
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us