SKAdNetwork Public Key generation for Ad Network

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.
  1. What format should the public key be in? (PEM or DER)

  2. 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).

Code Block bash
# 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


PEM is an acceptable format to submit when registering.

And for the cryptographic keys, they must be generated using an Elliptic Curve Digital Signature Algorithm (ECDSA) with a SHA-256 hash.
@App Store Connect Engineer - Thank you for clarifying. Can you also please provide the openssl commands that Ad Networks should use to generate valid cryptographic key pairs?
Is it possible to get the openssl commands to generate the key to use for the SkAdNetwork?

Thanks.
is it possible to resubmit a public key?
SKAdNetwork Public Key generation for Ad Network
 
 
Q