Post

Replies

Boosts

Views

Activity

Reply to How to validate in a webview using the certificate of a cryptographic card
I extend this post with the method that I override of the webview, and that is missing in the previous code: func webView(_ webView: WKWebView, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {    let method = challenge.protectionSpace.authenticationMethod    switch method {    case NSURLAuthenticationMethodClientCertificate:        sendClientCertificate(for: challenge, via: completionHandler)    default:     completionHandler(.performDefaultHandling, .none)    }   }
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’23
Reply to Best practices in the initialization of a database in app ios
It could be an option. I did not know that an sqlite file could be sent. How could it be done?
Replies
Boosts
Views
Activity
Apr ’22
Reply to Best practices in the initialization of a database in app ios
This master tables are resdonly, but other tables in the database are writable by the app.
Replies
Boosts
Views
Activity
Apr ’22
Reply to How to create Private SecKey from modulus and private exponent
In case it helps anyone else, with CryptoSwift you can create an RSA key by passing these parameters and it is possible to decrypt the encrypted message with your public key.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’23
Reply to How to validate in a webview using the certificate of a cryptographic card
I extend this post with the method that I override of the webview, and that is missing in the previous code: func webView(_ webView: WKWebView, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {    let method = challenge.protectionSpace.authenticationMethod    switch method {    case NSURLAuthenticationMethodClientCertificate:        sendClientCertificate(for: challenge, via: completionHandler)    default:     completionHandler(.performDefaultHandling, .none)    }   }
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to URLSession.dataTask not working on testflight
Thanks Eskimo, I found the problem. The behaveour in xCode and in TestFlight is diferent.
Replies
Boosts
Views
Activity
Jun ’24