Skip to content

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

@sgrbhinge

Description

@sgrbhinge

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions