Using Afnetworking, how to download SSL certificate and extract the public key on iOS?


+1 vote
asked Mar 16, 2016 by bar_3301 (1,360 points)
Thanks in advance for your time. I'm using AFNetworking and doing SSL Pinning. Now, I need to download SSL certificate and use extract it's public key to generate string.

4 Answers

0 votes
answered May 6, 2016 by bs76Looking (480 points)
selected May 7, 2016 by Rief_This
 
Best answer

The SSL certificate from my webservice changes from time to time. Once you get the certificates in your bundle, you can read them like any file.

For more details check this https://github.com/AFNetworking/AFNetworking/issues/2659
commented May 7, 2016 by Rief_This (1,390 points)
Dead code analysis like this requires a global analysis of your entire project
commented May 7, 2016 by Fvm_Im (750 points)
I very recently had the some problem and just figured out how to do this. Now that background will be shown
0 votes
answered May 18, 2016 by raqKeys (290 points) 1 flag

If you need your SSL Certificate in Apache. You need both the public and private keys for an SSL Certificate to function. Digi Cert provides your SSL Certificate file (public key file) . But you could have a look at this PFX Certificate Export | Certificate Utility | DigiCert.com adapt it to your needs
+1 vote
answered May 20, 2016 by ToJorgenson (330 points) 1 flag
Various implementations with some timing at PFX Certificate Export | Certificate Utility | DigiCert.com
0 votes
answered Jun 2, 2016 by gbb_the (850 points)
This is a problem with your remote. You have an example here

Related questions

+1 vote
4 answers
+2 votes
3 answers
asked Feb 22, 2016 by Sne_1339 (350 points)

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!







...