IPhone app with SSL client certs

后端 未结 7 699
逝去的感伤
逝去的感伤 2021-01-30 09:53

I\'m building an iphone app that needs to access a web service over https using client certificates. If I put the client cert (in pkcs12 format) in the app bundle, I\'m able to

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-30 10:19

    I've done this for a recent app by making the documents folder for the app accessible via itunes. Our users are then instructed to drag their generated key (in a p12 format file) into the documents panel for our app in iTunes. When the app is started, it checks for the existence of the p12 file and, if it exists, imports the file into the keychain.

    It's not the simplest procedure, but it is the most secure because you don't have a private key file being sent around via email.

提交回复
热议问题