I need an API and an iOS application that can do the following:
1) Initial Pairing (iOS app)
a) Allow the iOS app to navigate to a given web site, retrieve a text file with a standardized name and navigate to the URL embedded in that file
b) Validate that the ssl certificate is valid and matches information contained in the retrieved text file
c) Upon validation, provide either a random password or a client certificate (which one is dictated by the retrieved text file).
d) Retrieve account questions from API and present to User in iOS app
e) Send questions to API for validation (need a mockup of this for prototype)
f) Upon validation notify user on iOS screen that pairing is complete and allow user to add another account to be paired to that site
2) Login
a) Allow iOS app to scan QR code presented on web page on a different device (PC) and navigate to site encoded in code (this will be to the API for that site)
b) Validate SSL certificate
c) Provide credential or cert from step 1
d) Upon API validating credential or cert, force login screen of web browser to enter the secure portion of the site