Setting up apple-app-site-association for Web Browser–to–Native App Handoff (iOS 8)

1.6k views Asked by At

I'm a newbie to certificates and openssl.

I want to understand how to sign a JSON file using openssl command with the certificate and key for an identity issued by a certificate authority trusted by iOS.

How to get certificate and key for my identity? Is it like how XCode signs my app for distribution?

Kindly help me to understand!

Link for apple documentation: https://developer.apple.com/library/prerelease/ios/documentation/UserExperience/Conceptual/Handoff/AdoptingHandoff/AdoptingHandoff.html#//apple_ref/doc/uid/TP40014338-CH2-SW10

2

There are 2 answers

2
jkingyens On

The certificate and key you need here is unrelated to the certificate and keys used in XCode to sign and distribute your application. In the case of signing this JSON file, the key and certificate refers to the ones used to verify your ownership of a particular web domain. This is typically used when securing your web domain with TSL/SSL for 'https' access. These are typically called "SSL certificates". You can obtain them directly from SSL certificate providers (google it) or via the domain registrar where you purchased your web domain.

0
thanhhieu2710 On

You can see this tutorial for setting up the association file. The most important thing is you must use the iPhone distribution certificate to sign your JSON file.