Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to provide certificate file (for secure connection) when connecting to presto? #56

Open
sgrbhinge opened this issue Sep 2, 2021 · 1 comment

Comments

@sgrbhinge
Copy link

sgrbhinge commented Sep 2, 2021

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)
@sgrbhinge
Copy link
Author

@tagomoris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant