Marino Faggiana 7 anni fa
parent
commit
2132b81e54
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      iOSClient/Security/NCEndToEndEncryption.m

+ 2 - 2
iOSClient/Security/NCEndToEndEncryption.m

@@ -249,8 +249,8 @@ cleanup:
         NSString *fileNamePath = [NSString stringWithFormat:@"%@/%@", directoryUser, fileNameCertificate];
         NSString *certificate = [NSString stringWithContentsOfFile:fileNamePath encoding:NSUTF8StringEncoding error:&error];
         
-        NSString *startPublicKey = @"-----BEGIN PUBLIC KEY-----";
-        NSString *endPublicKey = @"-----END PUBLIC KEY-----";
+        NSString *startPublicKey = @"-----BEGIN CERTIFICATE-----";
+        NSString *endPublicKey = @"-----END CERTIFICATE-----";
         
         NSScanner *scanner = [NSScanner scannerWithString:certificate];
         [scanner scanUpToString:startPublicKey intoString:nil];