diff --git a/package.json b/package.json index 1ca4f85..67a1795 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "typescript": "^5.2.2" }, "dependencies": { - "@openziti/libcrypto-js": "^0.21.0", + "@openziti/libcrypto-js": "^0.24.0", "@openziti/ziti-browzer-edge-client": "^0.7.0", "asn1js": "^3.0.5", "assert": "^2.0.0", diff --git a/src/channel/tls-connection.js b/src/channel/tls-connection.js index d827095..32dd73f 100644 --- a/src/channel/tls-connection.js +++ b/src/channel/tls-connection.js @@ -61,7 +61,7 @@ import { v4 as uuidv4 } from 'uuid'; */ async pullKeyPair() { - this._privateKeyPEM = this._zitiContext.get_privateKeyPEM(); + this._privateKeyPEM = await this._zitiContext.get_privateKeyPEM(); this._certPEM = await this._zitiContext.getCertPEM(); diff --git a/src/channel/wasm-tls-connection.js b/src/channel/wasm-tls-connection.js index b637a37..ee001a2 100644 --- a/src/channel/wasm-tls-connection.js +++ b/src/channel/wasm-tls-connection.js @@ -98,7 +98,7 @@ import {Mutex, withTimeout, Semaphore} from 'async-mutex'; */ async pullKeyPair() { - this._privateKeyPEM = this._zitiContext.get_privateKeyPEM(); + this._privateKeyPEM = await this._zitiContext.get_privateKeyPEM(); this._certPEM = await this._zitiContext.getCertPEM(); diff --git a/src/http/ziti-inner-tls-socket.js b/src/http/ziti-inner-tls-socket.js index a1f2e64..ff3f3cf 100644 --- a/src/http/ziti-inner-tls-socket.js +++ b/src/http/ziti-inner-tls-socket.js @@ -134,7 +134,7 @@ class ZitiInnerTLSSocket extends EventEmitter { */ async pullKeyPair() { - this._privateKeyPEM = this._zitiContext.get_privateKeyPEM(); + this._privateKeyPEM = await this._zitiContext.get_privateKeyPEM(); this._certPEM = await this._zitiContext.getCertPEM(); diff --git a/yarn.lock b/yarn.lock index c5c7759..d3afe40 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1305,10 +1305,10 @@ portfinder "^1.0.21" request "^2.88.0" -"@openziti/libcrypto-js@^0.21.0": - version "0.21.0" - resolved "https://registry.yarnpkg.com/@openziti/libcrypto-js/-/libcrypto-js-0.21.0.tgz#a6deb214968a68709b9eb1e877fdace1b72c1a51" - integrity sha512-xRzxG5tw2dPZRmqXmo2rf73uI6gaR/o+nBfbXlL70qnmv8RS3zwC1sdSI6t+ZrYEcsMpytONyYtcRn1J8mIucA== +"@openziti/libcrypto-js@^0.24.0": + version "0.24.0" + resolved "https://registry.yarnpkg.com/@openziti/libcrypto-js/-/libcrypto-js-0.24.0.tgz#c01da457ce423e08fd1839b5c7d672fcdb1a113e" + integrity sha512-O8+1oea7AQqphfn0DALLGDkCQ2cwmoqO14dLKSic2bcKNM/1CWVUgJnn9US2dbuHTBy5ZH8q835av0PtAYHALQ== dependencies: "@types/emscripten" "^1.39.6" "@wasmer/wasi" "^1.0.2"