Skip to content

Commit

Permalink
fix mixed tabs + spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
cwalv committed Jul 18, 2017
1 parent d5a4924 commit 9bd312d
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions lib/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,28 +385,28 @@ function Server(compiler, options) {
if(!certExists) {
console.log("Generating SSL Certificate");
const attrs = [{ name: "commonName", value: "localhost" }];
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
});
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
});

fs.writeFileSync(certPath, pems.private + pems.cert, { encoding: "utf-8" });
}
Expand Down

0 comments on commit 9bd312d

Please sign in to comment.