android verify signature of file with .der public key
问题 I'm trying to verify the signature of a file. I followed these instruction to generate a certificate: // generate a private key with size of 2048 bits openssl genrsa -out private_key.pem 2048 // derive a public key from the above private key openssl rsa -in private_key.pem -out public_key.pem -outform PEM -pubout // iOS will not import PEM encoded data so it needs to be converted to DER encoded data openssl rsa -pubin -inform PEM -outform DER -in public_key.pem -out public_key.der // generate