Command to get ssl certificate pinning from certificate
0
votes
1
answer
1681
views
There is a new certificate in PEM format. How to get from it (using OpenSSL?) a format expected by iOS? (example: [Alamofire/Source/ServerTrustEvaluation.swift](https://github.com/Alamofire/Alamofire/blob/master/Source/ServerTrustEvaluation.swift))
I've tried using something like:
openssl x509 -in newcertificate.crt -outform der |openssl dgst -sha256 -binary |openssl enc -base64
But it doesn't generate output like debug in iOS library.
I can of course get pinning from debug in library - but I would like to receive the same pinning using OpenSSL command.
Asked by undefine
(1450 rep)
Apr 9, 2018, 10:06 AM
Last activity: Feb 27, 2020, 11:23 AM
Last activity: Feb 27, 2020, 11:23 AM