How to create secure connection with elasticsearch in ruby client?

in using logstash to create client connection with elasticsearch for _search endpoint.

it is running fine with http, but not with https.

currently i am using elasticsearch-transport client gem in my code.

can someone help me to figure out this problem?

can elastic community help me ?

i have seen as no response