Skip to content

Commit

Permalink
added server certificates back into server and client
Browse files Browse the repository at this point in the history
  • Loading branch information
iangeckeler committed Aug 13, 2019
1 parent 8a6246b commit e153660
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 53 deletions.
2 changes: 1 addition & 1 deletion examples/firecomm/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const routeguide = require("./routeguide.js");

const firecomm = require("../../index");

let certificate = path.join(__dirname, "/test2.crt");
let certificate = path.join(__dirname, "/server.crt");

const stub = new firecomm.Stub(routeguide.RouteGuide, "localhost:3000", {
certificate
Expand Down
4 changes: 2 additions & 2 deletions examples/firecomm/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ server.addService(
// server.handlers["/routeguide.RouteGuide/UnaryChat"]
// );

let certPath = path.join(__dirname, "/test2.crt");
let keyPath = path.join(__dirname, "/test2.key");
let certPath = path.join(__dirname, "/server.crt");
let keyPath = path.join(__dirname, "/server.key");

const result = server.bind("0.0.0.0:3000", {
privateKey: keyPath,
Expand Down
22 changes: 0 additions & 22 deletions examples/firecomm/test2.crt

This file was deleted.

28 changes: 0 additions & 28 deletions examples/firecomm/test2.key

This file was deleted.

0 comments on commit e153660

Please sign in to comment.