Deploying Vapor with heroku

会有一股神秘感。 提交于 2019-12-08 16:26:26

A user in the Slack channel gave me insight to this problem.:

VZSG: @animatronicgopher: experimenting on Heroku is cheap but it's pretty pointless to scale up to paid dynos just because of this. It does not make a difference – first, this error is generated by an HTTP client, so your server's certificate doesn't matter, and second, even free dynos have proper certs (and they aren't just letsencrypt certs either). What you probably found is for custom domains.

The actual problem is that the "default" HTTPClient does not care about the dyno's trusted root certificates, therefore the outgoing SSL connection cannot be verified -> error.

Also, there's an issue in GitHub that gives you a sample of how to use FoundationClient. https://github.com/vapor/vapor/issues/699

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!