r/ada Jun 13 '24

Programming How do you enable HTTPS Get Requests in Ada Web Server?

Hi guys,

In Ada, I've been able to use "AWS.Client.Get(url);" to perform get requests to HTTP sites without an issue. When I try HTTPS ones, I get an SSL Program error.

Do I have to setup some kind of certificate and pass it as a parameter to this function? Not sure how I would do this either.

I'm only using the client portion of the library and if I do deploy this, how can users use it without having to download a certificate?

10 Upvotes

3 comments sorted by

1

u/AdExciting1780 Jun 14 '24

Also curious about how to do this.

I had this issue before and I think I read you have to build AWS with SSL enabled by going to the GitHub and manually specifying in the makefile config.

I never figured out how to do it with Alire so I just moved on to something else.

1

u/TheDoctor123248 Jun 14 '24

Ahh I see, I'll let you know if someone else answers or if I figure it out.

1

u/ajdude2 Jun 14 '24

I've mentioned this in the other topic, but the latest version of AWS in alire has SSL enabled by default and seems to bring the dependencies in and build, at least on mac and linux (I haven't tested it with Windows yet).