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

SSL problem while connecting to elastic ??? #295

Closed
davidvilanova opened this issue Aug 23, 2022 · 6 comments
Closed

SSL problem while connecting to elastic ??? #295

davidvilanova opened this issue Aug 23, 2022 · 6 comments

Comments

@davidvilanova
Copy link

Hi,
I´m trying to connect to elastic as follows:

host="192.168.1.210"
schema="https"
port=9200
user="myuser"
pwd="mypasswd"
index="myindex"
es_conn <- connect(host=host, 
                                    port=port, 
                                    transport_schema = schema, 
                                    errors= "complete", 
                                    warn=T, 
                                    user=user, 
                                    pwd=pwd, 
                                    force=t, 
                                    ssl_verifypeer = FALSE) 

How to fix this SSL problem ?

es_conn$es_ver() Error in curl::curl_fetch_memory(x$url$url, handle = x$url$handle) : SSL: no alternative certificate subject name matches target host name '192.168.1.210'
@sckott
Copy link
Contributor

sckott commented Aug 23, 2022

you can set curl options separately which may work for you, see #293 (comment)

@davidvilanova
Copy link
Author

Not really familiar with SSL, what these options should be ?

@davidvilanova
Copy link
Author

Ok to make it work you need to add the ssl_verifyhost=F parameter.

The following will work:

es_conn <- connect(host=host, 
                                    port=port, 
                                    transport_schema = schema, 
                                    errors= "complete", 
                                    warn=T, 
                                    user=user, 
                                    pwd=pwd, 
                                    force=t, 
                                    ssl_verifypeer = FALSE,
                                    ssl_verifyhost=FALSE) 

@sckott
Copy link
Contributor

sckott commented Aug 25, 2022

looks like you figured it out, nice work

@maelle
Copy link
Member

maelle commented Sep 9, 2022

For info this package is looking for a new maintainer cf #292 😸

@maelle
Copy link
Member

maelle commented Jan 12, 2023

I see this issue should have been closed.

@maelle maelle closed this as completed Jan 12, 2023
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

3 participants