Phil
Phil

Reputation: 151

can I submit an iOS app with self signed SSL certificate?

I have an app connecting via https where the web server has a self signed SSL. Is this allowed by apple or does anything have to be done before submission?

Upvotes: 2

Views: 1701

Answers (1)

m1sh0
m1sh0

Reputation: 2351

Yes, you can do it, you can find the answer in this question

You need to define in your info.plist your domain.

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSExceptionDomains</key>
    <dict>
        <key>example.com</key>
        <dict>
            <key>NSExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSIncludesSubdomains</key>
            <true/>
        </dict>
    </dict>
</dict>

Upvotes: 2

Related Questions