Given an arbitrary apk, why can't you just unzip the apk then cd into the META-INF directory and do:
openssl pkcs7 -inform DER -in CERT.RSA -out CERT.pem -outform PEM -print_certs Or am i missing what you're trying to achieve? On Tue, Jan 29, 2013 at 5:52 PM, William Roberts <[email protected]>wrote: > Creating a pull request: > https://bitbucket.org/billcroberts/external-sepolicy > > To start discussions on being able to support creating a pem file from > a base16 cert or modifying insertkeys to be able to use base16 > encodings or maybe paths to apks... > > Trying to add a pem file option to setool. This way if you have an > arbitrary apk you can create a pem file for it. Perhaps the better > approach is to modify insertkeys.py to be able to use base16 key files > as well. > This code doesn't work, converting the base16 string back to base64 > doesn't result in the original pem file, and I am not really sure why? > Just posting this to see if anyone knows? > > -- > Respectfully, > > William C Roberts > > -- > This message was distributed to subscribers of the seandroid-list mailing > list. > If you no longer wish to subscribe, send mail to [email protected] > the words "unsubscribe seandroid-list" without quotes as the message. >
