Hi,
I have issue regarding disable 1.0,1.1 and 1.3.
On our server side we enabled only TLS 1.2 only so I need to disable other all version.
Please check below code.
let request: NSMutableURLRequest = createRequest(url,apiType: apiType, parameters: parameters, body: body as [String : AnyObject]?, headers: PLUtility.getUnwrappedValue(headers),requestType:requestType!)
let configuration = URLSessionConfiguration.default
configuration.tlsMaximumSupportedProtocol = SSLProtocol.tlsProtocol12
configuration.tlsMaximumSupportedProtocol = SSLProtocol.tlsProtocol12
configuration.timeoutIntervalForRequest = 30 /
configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
configuration.urlCache = nil
SSLCipherSuite : Ciphers[] = [
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
]
Here, I added maximum and min support protocol version TLSv1.2 only but still it is working in TLSv1.0, 1.1, 1.3
Can you please let me know how can I restrict other TLS version expect TLSv1.2
Please let me know how can I pass CipherSuite in Swift ?
can you provide reference url or snippet code.
Kindly let me know if any query.
Thank you in advance.