Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 468295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:40:03+00:00 2026-05-12T23:40:03+00:00

My app connects to the Schwab OFX server using NSURLConnection . Unfortunately the server

  • 0

My app connects to the Schwab OFX server using NSURLConnection. Unfortunately the server uses a very recent intermediate certificate that is trusted on the Mac desktop but not yet the iPhone. (Try the URL—you’ll get a cert error on iPhone.)

There’s no easy way to tell NSURLConnection to ignore an invalid cert that I know of. Thus I’m trying to import the cert into the Keychain manually and set its trust level but I’ve hit a block.

I call SecCertificateCreateWithData successfully to import the certificate from a .cer file. On the desktop I would then call SecTrustSettingsSetTrustSettings, but it doesn’t exist in the iPhone SDK.

Any workaround?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T23:40:04+00:00Added an answer on May 12, 2026 at 11:40 pm

    Apple technical support responded to me promptly with a perfect answer.

    First, I am incorrect in saying that Schwab uses “a very recent intermediate certificate that is trusted on the Mac desktop but not yet the iPhone”. Intermediate certificates are never in the built-in root certificate store. The issue is that most SSL servers bundle all intermediate certificates needed for verification, but Schwab uses an alternate SSL process that expects you to fetch the intermediate certificate from a URL. The Mac desktop supports intermediate-certificate fetching, but not the current iPhone OS.

    Here’s the gist of the actual code:

    OSStatus            err;
    NSString *          path;
    NSData *            data;
    SecCertificateRef   cert;
    
    path = [[NSBundle mainBundle] pathForResource:@"OFX-G3" ofType:@"cer"];
    assert(path != nil);
    
    data = [NSData dataWithContentsOfFile:path];
    assert(data != nil);
    
    cert = SecCertificateCreateWithData(NULL, (CFDataRef) data);
    assert(cert != NULL);
    
    err = SecItemAdd(
        (CFDictionaryRef) [NSDictionary dictionaryWithObjectsAndKeys:
            (id) kSecClassCertificate,  kSecClass, 
            cert,                       kSecValueRef, 
            nil
        ], 
        NULL
    );
    assert(err == noErr);
    
    CFRelease(cert);
    

    This assumes that OFX-G3.cer is the intermediate SSL certificate and is located in the Resources folder.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a .NET 2.0 winforms app that connects to a SQL Server 2005
I'm trying to create an iPhone app that connects to FB using their API.
I have an app that connects to a remote chat server and then the
I am writing a VB.NET app that connects to a legacy application using TCP.
I have a c# asp.net app that connects to local databases using port forwarding.
My app connects to my server using mutual authentification, so I have a .p12
I have a web app which connects to a server using a TCP connection
I am developing an app that connects to a java server through a TCP
I have a desktop app that connects to a WCF service and uses WCF
I have Flex/AIR app that connects to a tomcat server via BlazeDS. I'm not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.