• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How do I obtain the proper credentials to test Handoff?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I obtain the proper credentials to test Handoff?


  • Subject: How do I obtain the proper credentials to test Handoff?
  • From: David Hoerl <email@hidden>
  • Date: Thu, 24 Jul 2014 15:45:29 -0400

I very much want to experiment with the new Handoff APIs, but to do so requires a properly constructed credentials file called "apple-app-site-association", which then gets placed on the external website you want your app to associate with.
Since I'm only experimenting at this point, and not specifically working
with any "real" web client, I'm trying to find some economic way to do this.
The Handoff guide shows this command to create the above file:

echo '{"activitycontinuation":{"apps":["YWBN8XTPBJ.com.example.myApp",
"YWBN8XTPBJ.com.example.myOtherApp"]}}' > json.txt

cat json.txt | openssl smime -sign -inkey example.com.key
                             -signer example.com.pem
                             -certfile intermediate.pem
                             -noattr -nodetach
                             -outform DER > apple-app-site-association

with virtually no information as to what sign, signer, and certfile should be.
Option 1

I went to NameCheap.com, bought a domain and got the rights to get an SSL cert from PositiveSSL for almost nothing. Great! However, when I went to the cert configuration, I found I needed a CSR, which NameCheap said should probably come from my host provider (Dropbox) - that ain't going to happen.
On close reading of the Handoff document, I see "It [the certificate]
need not be the same identify hosting the web credentials". Hmmm not
sure what that means. If I run "Keychain Access", I can create a
certificate signing request. Would that work?
I only get one chance at doing this right - otherwise, its a new
domain/cert purchase.

Option 2

I just purchase hosting from NameCheap.com. Its not really all that expensive ($50/yr), but geez, I'm never going to use it for anything other than to test Handoff. However, if I go this route, then I am suppose to get NameCheap to generate the CSR for me, then I use what they give me to paste into the request. I have to tell them, do I want "example.com" or "www.example.com" - I assume I tell them "example.com" (ie my domain name, no www).
This options probably has a higher chance of succeeding, since this
configuration is going to approximate a "real" client site.

In all cases, what is "certfile"? Is this the cert I get when I connect to "example.com", and click on the little lock in Safari?
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: Problems with authenticated background downloads involving a 301 redirect
  • Next by Date: Re: Problems with authenticated background downloads involving a 301 redirect
  • Previous by thread: Re: WiFi channel separation
  • Next by thread: Configure socket used by NSURLConnection?
  • Index(es):
    • Date
    • Thread