I finished setting up the webservice routes according to Apple documentation and I am able to sign and provide passes. Unfortunately I am experiencing the following problem. When I define the webServiceUrl as "https://localhost:5000/wallet/" the signing of the pass works as expected. I am then using the pass in the iOS Simulator where I have enabled the "Allow Http Services" in the developer settings but I am still getting the "An SSL error has occurred and a secure connection to the server cannot be made" error. Trying then to use http instead of https directly in the definition of the webServiceUrl in the pass.json file produces a signing error. Do you know which steps have to be made to be able to test pass updates locally?
Asked
Active
Viewed 1,285 times
1 Answers
1
The warning is telling you everything you need to know.
Change your webServiceUrl
to http://localhost:5000/wallet/
. The developer option means that you don't have to use https and the pass should still install on any device with "Allow Http Services" set.

PassKit
- 12,231
- 5
- 57
- 75
-
I did that but then I cannot sign the pass. I am getting an exception. How can I sign a pass with *webServiceUrl=http://localhost:5000/wallet/* ? Does signpass binary from Apple work for you? – koufa Jan 09 '20 at 13:51
-
What library are you using to sign the pass? You’ll need to override that exception as it is being imposed by your signing code, not by Apple. – PassKit Jan 09 '20 at 13:52
-
I am using https://github.com/walletpass/pass-js . I am implementing my server using Node.js. Do you recommend an other library for Node.js? – koufa Jan 09 '20 at 13:54
-
No, I use my own golang library, but I am sure it would not be much trouble to manually edit your node package to remove the check while you test. – PassKit Jan 09 '20 at 13:56
-
Thank you, I will try that but it is strange that Apple's official tool: signpass also produces an error when trying to sign a pass.json which contains an http endpoint for the webServiceUrl field – koufa Jan 09 '20 at 14:00
-
The source code to signpass is also available, so you could modify and recompile that to remove the restriction if you just need something to quickly test with. The check is valid because production passes will not install if they contain a http `webServiceUrl`. – PassKit Jan 09 '20 at 14:03
-
Thank you for the answers. signpass seems to work without modification I retried now probably before was an other error. And yes it can be opened on a device with the developer setting "Allow Http Services" set to "true". – koufa Jan 09 '20 at 14:12