Skip to content

Commit

Permalink
changes to certificate generation and reading them from the ios app
Browse files Browse the repository at this point in the history
  • Loading branch information
ptc-rdeleeuw committed Feb 5, 2024
1 parent 59c1626 commit 51f1ed9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion addons/vuforia-spatial-core-addon
4 changes: 2 additions & 2 deletions generate_cert.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/zsh

# generate certificate and key
libressl req -x509 -newkey rsa:4096 -nodes -keyout key.pem -sha256 -days 356 -out cert.pem
openssl req -x509 -newkey rsa:4096 -nodes -keyout key.pem -sha256 -days 356 -out cert.pem
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ if (!isLightweightMobile) {


let options = {
key: fs.readFileSync('key.pem'),
cert: fs.readFileSync('cert.pem')
key: fs.readFileSync(__dirname + '/key.pem'),
cert: fs.readFileSync(__dirname + '/cert.pem')
};
const httpServer = require('https').createServer(options, webServer);
const http = httpServer.listen(serverPort, function () {
Expand Down

0 comments on commit 51f1ed9

Please sign in to comment.