Hello,
I'm registering as an Ad Network in SKAdNetwork and need some help.
We have some questions about the format of the public key provided when registering as an Ad Network.
What format should the public key be in? (PEM or DER)
Which Elliptic Curve signature algorithm should be used?
This is our current understanding, to generate a PKCS#8 public key from an encrypted PKCS#8 private key that was created using Elliptic Curve signature algorithm prime256v1 (all in PEM format).
create Elliptic Curve private key
openssl ecparam -out ec_privkey.pem -genkey -name prime256v1
generate PKCS#8 private key using an encryption pwd
openssl pkcs8 -topk8 -inform PEM -outform PEM -in ec_privkey.pem -out pkcs8_privkey.pem
generate PKCS#8 public key
openssl ecparam -in pkcs8_privkey.pem -pubout -outform PEM -out pkcs8_pubkey.pem