I am facing this error while connecting to presto using the presto-client,
unable to get local issuer certificate
const readKeystore = jks.toPem(fs.readFileSync('C:/Users/userDir/Desktop/keystore.jks'), 'keyStorePassword');
const { cert, key } = readKeystore['prestossl'];
let hiveConfig: any = {}
hiveConfig.user = 'user_name'
hiveConfig.password = 'password'
hiveConfig.port = '8085'
hiveConfig.host = 'myhadoopuser.mydomain.com'
hiveConfig.ssl = {
key : key,
cert : cert
};
let presto = new Presto(hiveConfig)