I am trying to verify a digitally signed piece of json. I have a base64 decoded exponent and a base64 decoded modulus.
I am using objective c and I seem to just be going around in circles, in java it takes roughly 5 minutes (using JOSE API's) to do this, I have spent 2 days trying to work out what to do in objective C.
Can anybody point me in the right direction please?
I should say originally I was trying to do what this tutorial demonstrates http://ios-blog.co.uk/tutorials/quick-tips/quick-tip-how-to-get-seckeyref-from-base64-coded-string/ so that I could verify the signature but I always get NULL back trying to create the SecCertificateRef.
I read this java tutorial http://www.trajano.net/2014/07/parsing-json-web-key-jwk-in-java/ which is what got me thinking that I need to use the modulus and exponent to somehow verify the digital signature.