-
Notifications
You must be signed in to change notification settings - Fork 551
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
SSL presto #203
Comments
@parisni The basic usage over HTTPS is
This will automatically use HttpBasicAuth. Note that you must include the password in your connection string. Also this will automatically use SSL. requests package relies on certifi package. Keep those libs up to date. If you need to use your own SSL Cert Verification, pass in the path to the cert like this
For Client Side Certificates
reference: http://docs.python-requests.org/en/master/user/advanced/ |
Hmm I wonder if this would work with Hive in the same manor |
bump, can we connect to SSL (TLS1.2) protected HiveServer2? |
I have the same issue, I need to pass the following properties (apart from user and password) that are usually configured in driver properties in a presto sql client: SSL = true Is this possible in anyway using create engine function? |
I have the same issue. Were you ever able to figure this out? |
Same here, need to pass these same arguments. Bump? |
Hi, I'm fighting with the same type of problem, using HttpBasicAuth and forwarding my local port 8888 to the target host:port Presto DB, as: engine_presto=create_engine( this returns the error: Including my .pem certificate as part of the Please, do you know any specific property (args) for avoiding this problem? |
I have the same issue. Were you ever able to figure this out? if yes, can you share the code snippet? |
I solved that issue in this way, hope this helps,
|
@rherasma in your above example where you are passing the below variables in the create_engine? and my issue is need to connect to presto by passing the below driver properties along with the username and password.
|
Sorry because I don't have all the code available here right now, I used it many months ago, but having a quick look I used this other dbapi option, hope this helps as well: import prestodb
|
I have two solutions about this. 'verify': FalseWe can set verify to False, just like this
The result is
We can get the correct result, but with some warnings. use pem fileFirst we need to know that TrustStore or KeyStore is used by java. For python we use pem. We can thansform the TrustStore file to pem.
Then the code is
The result has no warning.
It is worth noting that when we generate the keystore, we need to define the subjectAltName. Otherwise there will be another warning
One of IP, or DNS in "ext "SAN=" neet to be set to the unqualified hostname of the Presto coordinator. |
has any solution? i have the same question. |
Hi
I am trying to connect to a https presto endpoint, with basic auth. I could'nt find a way to specify a certifficate file, or a pem file. I actually dig into the source code, and the only way I got working was by doing this:
I also tried that :
But I got a ssl error.
Is there any way to pass the certificate ?
Thanks
The text was updated successfully, but these errors were encountered: