diff --git a/scripts/simulateClient.js b/scripts/simulateClient.js index ed591bb6..a5e9cf25 100644 --- a/scripts/simulateClient.js +++ b/scripts/simulateClient.js @@ -8,11 +8,11 @@ import { client } from '#udsp'; console.time('Connected'); // Universal Web Socket const uwClient = await client({ - destinationCertificate: `${currentPath(import.meta)}/../services/universal.web-EphemeralPublic.cert`, + destinationCertificate: `${currentPath(import.meta)}/../serverApp/certs/universal_web-Ephemeral/universal.web-EphemeralPublic.cert`, // Load Profile Certificate from Keychain // keychain: 'Universal Web Profile', // Load Profile Certificate from file - profile: `${currentPath(import.meta)}/../profiles/default-Ephemeral.cert` + profile: `${currentPath(import.meta)}/../profiles/default/default-Ephemeral/default-Ephemeral.cert` }); // const connection = await uwClient.connect(); // await client('universalweb.io', {keychain: 'Universal Web Profile'}); diff --git a/serverApp/index.js b/serverApp/index.js index 31f65bf1..7799566a 100644 --- a/serverApp/index.js +++ b/serverApp/index.js @@ -44,7 +44,7 @@ const appServer = await server({ // default file extension default is .js but WWW default is www defaultExtension: 'html', // Domain certificate to be loaded used for connection encryption - certificatePath: path.join(currentPath(import.meta), '/universal_web-Ephemeral/universal.web-Ephemeral.cert'), + certificatePath: path.join(currentPath(import.meta), '/certs/universal_web-Ephemeral/universal.web-Ephemeral.cert'), // Where to load app resources from resourceDirectory: path.join(currentPath(import.meta), 'resources'), rootDirectory: currentPath(import.meta),