You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and as you can see I hardcoded my key alias inside the store because there is not option to pass the key alias
So was it necessary to hack the code or is there any trick to make it work and if not are you open to discuss an implementation because I would like to avoid to use a forked library.
What would be possible is either keep the node:tls syntax and when key and cert is available inside options to store them inside keystore and use the ClientTrustManager class but I also need to specify the keystore name, the key/cert alias because
in my app I generate the certificate if it's not already available.
So basically it would implement the following options:
let options = {
port: this.port,
host : this.host,
rejectUnauthorized: true,
// new options (compatible with node:tls)
key: this.certs.key,
cert: this.certs.cert,
// new options (specific to android/ios?)
keyStoreName: 'AndroidKeyStore',
keyAlias: 'my-key-atv',
certAlias: 'my-key-atv-cert',
};
What do you think ?
The text was updated successfully, but these errors were encountered:
I was not able to use your library to connect to a server using a self-signed certificate (see my issue report here).
On node it's as a simple as writing this:
But with TcpSockets.connectTLS it never worked so am I missing something ?
To make it work I had to pass ca and cakey:
And then modified to store ca AND caKey inside keyStore:
and as you can see I hardcoded my key alias inside the store because there is not option to pass the key alias
So was it necessary to hack the code or is there any trick to make it work and if not are you open to discuss an implementation because I would like to avoid to use a forked library.
What would be possible is either keep the node:tls syntax and when key and cert is available inside options to store them inside keystore and use the ClientTrustManager class but I also need to specify the keystore name, the key/cert alias because
in my app I generate the certificate if it's not already available.
So basically it would implement the following options:
What do you think ?
The text was updated successfully, but these errors were encountered: