【问题标题】:react native ssl pinning反应本机 ssl 固定
【发布时间】:2020-03-31 13:57:55
【问题描述】:

我们正在构建一个 react native 0.61.4 应用程序,我们希望使用库 react-native-ssl-pinning。 ios证书有问题,在ios上运行时fetch返回错误“cancelled”。

我们已按照https://www.npmjs.com/package/react-native-ssl-pinning 的步骤进行操作。 我不确定 Usage ios 的第二步: (如果您使用证书固定,请跳过此步骤)公钥固定不需要额外的步骤,AFNetworking 将从证书中提取公钥。

对可能出了什么问题有任何想法吗?

【问题讨论】:

  • 如果您还没有管理,请尝试this article。它帮助我使用最新的 React Native 版本 (0.64.2) 在 IOS 和 Android 上快速实现公钥固定

标签: ios reactjs react-native ssl


【解决方案1】:

您可以尝试使用 react-native-cert-pinner 包在 react native 中实现公钥固定。非常容易安装,无需从 javascript 端重写 fetch 方法。它直接与 iOS 中的网络层交互。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-05-02
    • 2018-03-25
    • 2019-08-11
    • 1970-01-01
    • 2016-08-25
    • 1970-01-01
    • 1970-01-01
    • 2020-08-10
    相关资源
    最近更新 更多