production ssl 和development ssl区别

本文详细介绍了如何通过Apple账号为iOS应用获取开发和上线阶段的推送通知证书,包括证书的创建、配置、下载及安装流程,确保了通信的安全性和稳定性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

推送中需要一个自己的服务器作为provider来跟apple的APNS服务器通信。为了保证通信安全,整个过程使用ssl做为加密机制,并且双方都需要证书来验证自己的身份。

那么如何获取provider的证书呢? 很简单, apple为每个app都已经准备好了两个证书,分别对应开发和上线两个阶段。

 

创建具有push功能的app证书 步骤:

1、在apple帐号的App IDs列表中找到需要添加push功能的app id,点击最右侧的Configures按钮,进入Configure App ID  页面

 

2、在Configure App ID页面中,在勾选 Enable for Apple Push Notification service .

 

  

3、如果创建developmentpush证书,点击Development Push SSLCertificate右边的Configure按钮,出现弹出框。


4、按照弹出框中的步骤操作,下载此证书


5、Development Push SSLCertificate的状态变为了Enable状态,如下图。双击刚才下载的证书安装后,在KeychainAccess中就出现了此证书,并将此证书导出成p12文件。


6、生成ProductionPush SSL Certificate步骤相同。

还需注意:无论是Development Push SSLCertificate还是Production Push SSL Certificate 都有过期时间的。Development Push SSL Certificate有效期大概四个月左右,而ProductionPush SSL Certificate d的有效期是一年。需要注意在过期之前生成新的证书,以免影响使用。


This error usually occurs when Git is unable to verify the authenticity of the SSL certificate provided by the remote repository. It could be due to a missing or incorrect SSL certificate configuration on your system. To resolve this issue, you can try the following steps: 1. Update Git: Make sure you have the latest version of Git installed on your system. You can check the version by running `git --version` in the command line. If you have an older version, consider upgrading to the latest stable release. 2. Verify SSL Certificate Bundle: Git uses a bundle of trusted SSL certificates to verify the authenticity of remote servers. Check if your Git installation has a valid certificate bundle. By default, Git looks for certificates in one of the following locations: - Mac/Linux: `/etc/ssl/certs/ca-certificates.crt` - Windows (MSYS/Git Bash): `mingw64\ssl\certs\ca-bundle.crt` If the certificate bundle is missing or outdated, you can obtain a new one from the curl website (https://curl.haxx.se/docs/caextract.html) and save it to the appropriate location. 3. Configure Git to use the certificate bundle: If the certificate bundle is not located in the default location, you can configure Git to use a specific certificate bundle file by running the following command: ``` git config --global http.sslCAInfo /path/to/certificate-bundle.crt ``` Replace `/path/to/certificate-bundle.crt` with the actual path to the certificate bundle file. 4. Disable SSL verification (not recommended): If you're in a development environment or trust the remote repository, you can temporarily disable SSL verification by running the following command: ``` git config --global http.sslVerify false ``` Note that this is not recommended for production environments or when working with untrusted repositories. Try these steps and see if it resolves the SSL certificate problem in Git. If the issue persists, please provide more details about your operating system, Git version, and any specific error messages you're encountering for further assistance.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值