         if certificateData == nil {
             return nil
         }
-        let certificate = certificateData?.withUnsafeBytes{ dataBytes in
+        let certificate = certificateData?.withUnsafeBytes {dataBytes in
             CFDataCreate(nil, dataBytes, (certificateData?.count ?? 0))
         }
         //    CFDataRef certificate = SecCertificateCopyData((__bridge CFDataRef)([NSKeyedUnarchiver unarchiveObjectWithData:certificateData]));

    init(pinningMode: AFSSLPinningMode) {
        super.init()
    }
    
    class func storeCertificateData(_ certificate: CFData?, forDomain domain: String?) {
        //    NSData *certificateData = [NSKeyedArchiver archivedDataWithRootObject:(__bridge id)(certificate)];
        let certificateData = certificate as? Data

        super.init()
        allowInvalidCertificates = ignoreCertificates
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
