You typically get these credentials as part of setting up HTTPS on your web server. In this example:
example.com.pemholds the certificate for your web server (issued by some trusted certificate authority (CA))
example.com.keyholds the private key that matches the public key embedded in that certificate
intermediate.pemholds any intermediate certificates on the path from the
example.com.pemleaf certificate to the CA’s trusted root certificate
Keep in mind that you only need to sign the
apple-app-site-associationfile if you want to support iOS 8. In iOS 9 and later you can host a plaintext file on your HTTPS server and you’re done. The Support Universal Links section of the App Search Programming Guide states as much:
If your app runs in iOS 9 or later and you use HTTPS to serve the apple-app-site-association file, you can create a plain text file that uses the application/json MIME type and you don’t need to sign it.
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"