Találtam egy megoldást, mi kell hozzá, hogy bizonyítványok felhasználó kulcstartó itt van a kód
NSURLCredentialStorage * credentialStorage=[NSURLCredentialStorage sharedCredentialStorage]; //(1)
NSURLCredential * newCredential;
newCredential=[NSURLCredential credentialWithUser:@"myUserName" password:@"myPWD" persistence:NSURLCredentialPersistencePermanent]; //(2)
NSURLProtectionSpace * mySpaceHTTP=[[NSURLProtectionSpace alloc] initWithProxyHost:@"ipProxy" port:port type:NSURLProtectionSpaceHTTPProxy realm:nil authenticationMethod:nil]; //(3)
NSURLProtectionSpace * mySpaceHTTPS=[[NSURLProtectionSpace alloc] initWithProxyHost:@"ipProxy" port:port type:NSURLProtectionSpaceHTTPSProxy realm:nil authenticationMethod:nil]; //(4)
[credentialStorage setCredential:newCredential forProtectionSpace:mySpaceHTTP]; //(5)
[credentialStorage setCredential:newCredential forProtectionSpace:mySpaceHTTPS]; //(6)
Meggyógyultam először sharedCredentialStorage (1), majd hoztam létre új NSURLCredential tartalmazó én felhasználói nevet, jelszót, és az a fajta kitartás kell használni (2). Ezután hoztam létre két NSURLProtectionSpace (3) (4): az egyik a HTTPS Connexion, és a HTTP Connexion
És végül, én hozzá NSURLCredential a sharedCredentialStorage ezekre ProtectionSpaces (5) (6)
Remélem, hogy ez a kód segítségével