反应与Heroku的本地公共密钥固定

发布于 2025-02-11 14:05:34 字数 309 浏览 2 评论 0原文

我阅读了有关SSL固定在React Native中的所有帖子和文章。 但是,所有这些都是关于我们生成证书的私有域。

但是,如果我的API托管在Heroku上,我该如何管理SSL固定?

理想情况下,我想将其固定在Hashed公钥上,因此在不必发布新版本的情况下管理旋转更容易。 但是我不知道如何与Heroku打交道,例如,我的API在MyApp.herokyapp.com上托管。

另外,如果我突然为Heroku添加SSL固定,它是否会影响当前移动版本中目前正在使用同一API的所有用户? 我不希望现有用户的所有请求失败。

任何帮助将不胜感激,谢谢!

I read all kind of posts and articles about ssl pinning in react native.
However all of those are about a privately owned domain for which we generate the certificate.

But if my API is hosted on Heroku, how can I manage SSL pinning?

Ideally, I would like to pin on hashed public key so it's easier to manage the rotation without having to release a new version.
But I have no clue how to deal with this with Heroku, with my api being hosted at myapp.herokyapp.com for example.

Also, if I suddenly add SSL pinning for my heroku, will it affect all my previous users in the current mobile version that are currently hitting on this same API?
I wouldn't want existing users to have all their requests failing.

Any help would be appreciated, thank you!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文