singular-labs / Singular-SKAdNetwork-App

Sample apps demonstrating the logic needed to implement SKAdNetwork as an ad network, publisher and advertiser.
https://www.singular.net
MIT License
79 stars 19 forks source link

genkey #7

Closed zhangchark closed 4 years ago

zhangchark commented 4 years ago

Hi guys, you save my days, thank you so much; Could you share how you generate the ecdsa key with pkcs8? here is my way, but not work when run 'get_skadnetwork_parameters.py':

openssl ecparam -genkey -name secp256r1 -out ecdsa_private_key.pem openssl pkcs8 -topk8 -inform PEM -in ecdsa_private_key.pem -outform PEM -nocrypt -out key.pem openssl ec -in ecdsa_private_key.pem -out ecdsa_public_key.pem -pubout

zhangchark commented 4 years ago

well,i found apple had renew their doc,and give the code openssl ecparam -name prime192v1 -genkey -noout -out companyname_skadnetwork_private_key.pem

the 'get_skadnetwork_parameters.py' worked with the key that generated as apple`s code.

danielxt7 commented 4 years ago

Hi @zhangchark - thanks! glad we could help :)

And thanks for the comment - we will add this to the README