mzeeshanid / MZDownloadManager

This download manager uses NSURLSession api to download files. It can download multiple files at a time. It can download large files if app is in background. It can resume downloads if app was quit.
BSD 3-Clause "New" or "Revised" License
1.12k stars 238 forks source link

SSL Error #83

Closed prabhatranjan143 closed 5 years ago

prabhatranjan143 commented 5 years ago

When I am downloading files it's producing SSL error. "Error while downloading file: Optional(\"image001.jpg\") Error: Error Domain=NSURLErrorDomain Code=-1200 \"An SSL error has occurred and a secure connection to the server cannot be made.\" UserInfo={NSErrorClientCertificateStateKey=0, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _NSURLErrorFailingURLSessionTaskErrorKey=BackgroundDownloadTask .<1>, NSErrorFailingURLKey=https://indefend.net:8443/service/home/~/?id=268&part=2&auth=co&disp=a, _NSURLErrorRelatedURLSessionTaskErrorKey=(\n \"BackgroundDownloadTask .<1>\",\n \"LocalDownloadTask .<1>\"\n), NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLStringKey=https://indefend.net:8443/service/home/~/?id=268&part=2&auth=co&disp=a, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9802}"

Could you please help me to figure out how to resolve this issue.

mzeeshanid commented 5 years ago

This issue is not related to MZDownloadManager. I have tested downloading with HTTPS from dropbox and other file sharing sites. It is working fine. Please verify your SSL certificate.

mzeeshanid commented 5 years ago

Moreover the link in the message above is not working even in the browser.