My application backend requires Client Certificate authentication. If I configure NSURLSession with default configuration, didReceiveChallenge delegate gets called where I am providing valid client certificate. It successfully completes the task. But in case of background session configuration didReceiveChallenge gets called and I am providing same certificate but it is not working.
How to do Client Certificate Authentication using NSURLSession with background session configuration?
489 Views Asked by Rahul At
0
There are 0 best solutions below
Related Questions in IOS
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Is the transactionReceipt data present in dataWithContentsOfURL?
- UIWebView Screen Fitting Issue
- ZXingObjC encoding issues
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Slow performance on ipad erasing image
- Swift code with multiple NSDateFormatter - optimization
- iOS 8.3 Safari crashes on input type=file
- TTTTimeIntervalFormatter always returns strings in English
- How do I add multiple in app purchases in Swift Spritekit?
- Setup code for xibs in iOS. -awakFromNb:
- iOS Voice Over only reads out the title of any alert views
Related Questions in NSURLSESSION
- Using NSURLSession from a Swift command line program
- NSURLSession/NSURLConnection HTTP load failed on iOS 9
- How to send HTTPS POST request in swift using NSURLSession
- Can someone find the error and verify my Swift NSURLSession code?
- UI Slow to Update *ONLY* If Called In Response To Change Occurring in NSURLSessionUploadTask Completion Block
- Resuming tasks using NSURLSession when app removed from background or on device reboot
- URLSession:didBecomeInvalidWithError: - should completion handler be called?
- I am having trouble parsing JSON that is returned from the NSURL session. What am I doing wrong?
- NSHTTPURLResponse Status Code 200 in Airplane Mode
- NSURLSession ignoring NSURLSessionConfiguration Cache Policy
- Is There A Neat Way to Attach a Completion Block to an NSURLSessionDataDelegate Callback in Swift?
- Swift dataTaskWithRequest completion block not executed
- Multiple NSURLSessions Causing UITableView Problems
- Cancel NSURLSession if user taps twice in swift iOS
- NSURLSession background transfer timeout not fired
Related Questions in BACKGROUND-FETCH
- Background mode (fetch) in iOS 8
- How to do Client Certificate Authentication using NSURLSession with background session configuration?
- Have to call a method in interval of 15 min, 30min 1 hr ,2 hr and 5 hr to update content. Best way
- Using URLSession and background fetch together with remote notifications using firebase
- IOS remote silent notification is not working during phone calls / network fluctuation
- iOS background fetch on app launch causes black screen
- ios 7 fetch offline message from xmpp server
- xamarin form App refresh on background or minimized
- Background fetch when app is terminated react-native Android
- Auto logout after 5mins App is in terminate state or background state in xamarin forms?
- Alamofire API call from background mode from userNotificationCenter not working
- Flutter Background_fetch lib does not run after terminating app
- Background fetch in iOS
- Background fetch not working
- Detect if ios background fetch is running when app in foreground
Related Questions in NSURLSESSIONCONFIGURATION
- NSURLSession ignoring NSURLSessionConfiguration Cache Policy
- NSURLSession background transfer timeout not fired
- Error when submitting download task with background session in Swift
- How to do Client Certificate Authentication using NSURLSession with background session configuration?
- Register NSURLProtocol (URLProtocol) class for use with external app?
- NSURLSession concurrent requests with Alamofire
- How to upload task in background using afnetworking
- Multiple background downloads in ios7 using NSURLSessionConfigurations
- NSURLSessionConfiguration timeoutIntervalForRequest doesn't seem to work with the background session
- Cannot invoke 'dataTask' with an argument list of type (with: NSMutableRequest, ...)
- Best place to call `completionHandler` received in `handleEventsForBackgroundURLSession` in case of uploading?
- NSURLSessionWebSocketDelegate delegates not being called iOS Objective c
- iOS | URLSession | Download task| didWriteData not calling when user switch between apps and come
- How to configure URLSessionConfiguration so that cached data lasts only 5 minutes (Backend doesn't handle expiration time)
- Add additional headers to Alamofire Session
Related Questions in NSURLCREDENTIAL
- How to do Client Certificate Authentication using NSURLSession with background session configuration?
- How to Share NSURLConnection credentials with Safari?
- NSURLCredential and NSURLConnection
- NSURLCredential Authentication with only one key
- Bypass self signed certificate with NSURLCredential while also passing in a username and password
- AFNetworking 2.0: How to persist an NSURLCredential across app launches
- Authentication challenge with NSURLSession: NSURLCredentialStorage vs Keychain
- Basic Authentication with Alamofire
- iOS how to properly retrieve a credential from NSURLCredentialStorage?
- NSURLCredentialStorage returns no credential when the app is started in the background with UIApplicationLaunchOptionsLocationKey
- How to remove NSURLCredential storage for https authentication in iOS
- AFNetworking 3.0 migration
- Watch OS : NSUrlSession Credential caching
- NSURLSession with backgroundSessionConfiguration can not work with user certificate
- Client SSL authentication with NSURLConnection doesn't work on OS X 10.7
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?