You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.error("Unable to store certificate for \(tag): \(errStr)")
193
-
returnfalse
228
+
log.error("Unable to store certificate for \(cnStr): \(errStr)")
229
+
return(ZitiError("Unable to store certificate for \(cnStr): \(errStr)", errorCode:Int(status)),nil)
194
230
}
195
231
log.info("Added cert to keychain: \(String(describing:SecCertificateCopySubjectSummary(cert)))")
232
+
cns.append(cnStr)
196
233
}
197
-
returntrue
234
+
return(nil, cns)
198
235
}
199
236
200
237
#if os(macOS) // if #available(iOS 13.0, OSX 10.15, *)
@@ -221,6 +258,7 @@ public class ZitiKeychain : NSObject {
221
258
}
222
259
#endif
223
260
261
+
@available(*, deprecated, message:"This function only stores the first certificate in `pem`. Use storeCertificates(pem:String) to store all certificates.")
guardlet certificate =SecCertificateCreateWithData(nil, der asCFData)else{
234
273
leterrStr="Unable to create certificate from data for \(tag)"
@@ -251,11 +290,16 @@ public class ZitiKeychain : NSObject {
251
290
return(certificate,nil)
252
291
}
253
292
293
+
@available(*, deprecated, message:"This function only gets one certificate, but an identity may have more than one. Use getCertificates( certCNs:[String]) instead")
0 commit comments