Marino Faggiana 7 年之前
父節點
當前提交
2132b81e54
共有 1 個文件被更改,包括 2 次插入2 次删除
  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];