https://kotlinlang.org logo
#ktor
Title
# ktor
u

アウスジョン(アウス)

03/04/2024, 6:14 AM
Hello, I'm trying to Ktor as client in a web app on an AWS EC2 instance. When the site is not secure ( http ) the request goes through. When there is a certificate ( https ) , the requests times-out. I've reading the documentation but it's not clear to me what I should do. Do I need to download the SSL certificate and pass it to Ktor?
a

Aleksei Tirman [JB]

03/04/2024, 7:29 AM
You don't need to do anything specific to establish the secure connections. Can you share the server endpoint if it's public?
u

アウスジョン(アウス)

03/04/2024, 8:09 AM
@Aleksei Tirman [JB] Unfortunately it's not public.
a

Aleksei Tirman [JB]

03/04/2024, 8:18 AM
Can you try another endpoint that requires a secure connection?
u

アウスジョン(アウス)

03/04/2024, 8:50 AM
Sorry, I'm not sure what you mean, the current endpoint does require a secure connection?
a

Aleksei Tirman [JB]

03/04/2024, 8:51 AM
I mean cay you try making a request to https://www.google.com, for example?
u

アウスジョン(アウス)

03/04/2024, 8:53 AM
From Ktor?
a

Aleksei Tirman [JB]

03/04/2024, 8:53 AM
Yes
u

アウスジョン(アウス)

03/04/2024, 8:53 AM
OK, I got you.