简体   繁体   English

用于推送通知的 Apple SSL 证书 x 常规 SSL 证书

[英]Apple SSL certificate for push notification x regular SSL certificate

I am implementing a push notification system for one of my apps, so I am following this tutorial and generating a SSL certificate for that.我正在为我的一个应用程序实施推送通知系统,因此我正在遵循教程并为此生成 SSL 证书。

This app of mine involves also, some exchange of data between the app and the server and I would like it to be SSL protected and I was wondering of getting a SSL certificate from verisign or other company like that.我的这个应用程序还涉及应用程序和服务器之间的一些数据交换,我希望它受到 SSL 保护,我想知道从 verisign 或其他类似的公司获取 SSL 证书。

My question is: is this SSL certificate created for push a regular SSL certificate, so in that can use it also to establish a https connection to the server (and save a couple hundred dollars to order a third party certificate)?我的问题是:这个 SSL 证书是为推送常规 SSL 证书而创建的,因此也可以使用它来建立到服务器的 https 连接(并节省几百美元来订购第三方证书)? I don't know much about SSL certificates, but I hope it can be used for that...我对 SSL 证书了解不多,但我希望它可以用于...

This will be amazing!这将是惊人的!

Since each certificate is tied to a specific domain, I'm not sure how this would work.由于每个证书都绑定到一个特定的域,我不确定这将如何工作。 There is a concept of wildcard certificates, but I still think they have to be for the same domain.有通配符证书的概念,但我仍然认为它们必须用于同一个域。

In your case, it sounds like you will have the Apple push certificate, which validates the connection between your server and Apple's push notification server.在您的情况下,听起来您将拥有 Apple 推送证书,它可以验证您的服务器与 Apple 的推送通知服务器之间的连接。 The other certificate would be to validate/secure the connection between your iOS app and your server.另一个证书将验证/保护您的 iOS 应用程序和您的服务器之间的连接。 Both of these are assigned a different domain (gateway.sandbox.push.apple.com vs. yourserver.com).这两个都分配了不同的域(gateway.sandbox.push.apple.com 与 yourserver.com)。

One option you do have depending on how your iOS app is structured is to use a self-signed certificate between your iOS app and your server.根据您的 iOS 应用程序的结构,您可以选择的一种方法是在您的 iOS 应用程序和服务器之间使用自签名证书。 I'm guessing the end-user will not be seeing the certificate anyway.我猜最终用户无论如何都不会看到证书。 This might be a way to save you money before deciding on a third party certificate.在决定第三方证书之前,这可能是一种为您省钱的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM