简体   繁体   English

我是否需要移动应用程序中的私钥才能通过SSL与服务器通信?

[英]Do i need my private key in my mobile app to communicate to server over SSL?

I have a paid certificate from a CA installed on my server. 我从服务器上安装的CA获得了付费证书。 Do i still need to include the key in my mobile app in order to use HTTPS when communicating with my server? 与服务器通信时,是否仍需要在移动应用程序中包含密钥才能使用HTTPS? Or can i just add change the URL to enforce the HTTPS. 或者我可以添加更改URL来强制实施HTTPS。 Example change from http://example.com to https://example.com 示例从http://example.com更改为https://example.com

No, you don't need to include the private/primary key in your app. 不,您不需要在应用程序中包含私钥/主密钥。 You need to use SSLSocketFactor . 您需要使用SSLSocketFactor

SSLSocketFactory example can be found here . SSLSocketFactory示例可在此处找到。

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

相关问题 我需要在服务器上做什么才能与Android应用程序通信? - What to I need to do to on my server to communicate with an Android app? 如何让我的 Android 应用程序通过 VPN 与服务器通信? - How do I get my Android app to communicate with the server over a VPN? 我需要为我的Android应用程序在Web服务器上使用ssl吗 - do i need ssl on my webserver for my android app 我可以控制自己的移动应用中的广告吗? - do I have control over ads in my own mobile app 如果私钥已被盗,使用第三方API的移动应用程序将如何处理? - What will my mobile app that uses 3rd party API do if the private key has been stolen? 我的星号服务器是否需要与移动应用程序相同的编解码器? - Does my asterisk server need the same codecs as my mobile app? 我的应用程序上是否需要用于实时聊天系统的服务器 - do I need a server for a live chat system on my app 如何使用私钥调试应用 - How can i debug my app with my private key 如何借助 web3j 在 android 应用程序中使用私钥导入我的以太坊钱包? - How do i import my ethereum wallet using private key in android app with the help of web3j? 我的Android应用无法与服务器通信...在我的计算机中 - My Android app cant communicate with my server…in my computer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM