Skip to content

Commit

Permalink
Fixed certificate not generating
Browse files Browse the repository at this point in the history
  • Loading branch information
Naviary2 committed Jul 10, 2024
1 parent 3e597bf commit 3451f46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/config/generateCert.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require('path');
const forge = require('node-forge');
const { ensureDirectoryExists } = require('../utility/fileUtils');

const certDir = path.join(__dirname, '..', 'cert');
const certDir = path.join(__dirname, '..', '..', '..', 'cert');

// Define the paths for the key and certificate files
const keyPath = path.join(certDir, 'cert.key');
Expand Down Expand Up @@ -50,6 +50,7 @@ function generateSelfSignedCertificate() {
* @returns {boolean} - Returns true if the certificate was generated, false if it already exists.
*/
function ensureSelfSignedCertificate() {
console.log(certDir)
// Create the cert directory if it doesn't exist
ensureDirectoryExists(certDir);

Expand Down

0 comments on commit 3451f46

Please sign in to comment.