Creates a URL credential instance for resolving a client certificate authentication challenge.
- iOS 3.0+
- macOS 10.6+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The identity for the credential.
An array of one or more
Secobjects representing intermediate certificates leading from the identity’s certificate to a trusted root, or
nilif the server does not need any intermediate certificates to authenticate the client.
The method ignores this parameter; you should supply a value of
URLCredentialbecause that most accurately reflects the actual behaviour.
.Persistence .for Session
A new URL credential object, using the provided identity and, optionally, an array of intermediate certificates.
When you receive a client certificate authentication challenge (
NSURLAuthentication) and want to resolve it successfully, you must supply a credential created using this initializer.
In most cases you should pass
nil to the
cert parameter. You only need to supply an array of intermediate certificates if the server needs those intermediate certificates to authenticate the client. Typically this isn’t necessary because the server already has a copy of the relevant intermediate certificates.