Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit 5c6e18a

Browse files
author
andrewstech
committed
Update owl.js to use relative file paths for reading keys
1 parent 2dc1aa2 commit 5c6e18a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/owl.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ async function loadKeyStore() {
77
const keystore = jose.JWK.createKeyStore();
88

99
// Load the public key for encryption from environment variable
10-
const publicKey = fs.readFileSync('/keys/public_key.pem', 'utf8');
11-
if (!publicKey) {
12-
throw new Error('Public key not found in environment variables');
13-
}
14-
await keystore.add(publicKey, 'pem');
10+
//const publicKey = fs.readFileSync('/keys/public_key.pem', 'utf8');
11+
//if (!publicKey) {
12+
// throw new Error('Public key not found in environment variables');
13+
//}
14+
//await keystore.add(publicKey, 'pem');
1515

1616
// Load the private key for decryption from environment variable
1717
const privateKey = fs.readFileSync('/keys/private_key.pem', 'utf8');

0 commit comments

Comments
 (0)