Skip to content

Commit

Permalink
include subjectAltName field in self-signed cert
Browse files Browse the repository at this point in the history
fixes issue with reconnect on Chrome 58+
  • Loading branch information
cwalv authored and Charles Arnold committed Jul 19, 2017
1 parent 6da2f38 commit c052664
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,23 @@ function Server(compiler, options) {
const pems = selfsigned.generate(attrs, {
algorithm: "sha256",
days: 30,
extensions: [{
name: "subjectAltName",
altNames: [
{
type: 2, // DNS
value: "localhost"
},
{
type: 6, // URI
value: "localhost"
},
{
type: 7, // IP
ip: "127.0.0.1"
}
]
}],
keySize: 2048
});

Expand Down

0 comments on commit c052664

Please sign in to comment.