Lie-An
Lie-An

Reputation: 2563

Type 'ServerTrustPolicy' has no member 'certificatesInBundle'

I want to pin certificate that is in the project bundle.

.pinCertificates(
        certificates: ServerTrustPolicy.certificatesInBundle,
        validateCertificateChain: true,
        validateHost: true
      )

This works in Swift 2 but when I update to Swift 3 I got this error:

Type 'ServerTrustPolicy' has no member 'certificatesInBundle'

Anyone who encountered the same issue? May I know what have you replaced with 'certificatesInBundle'?

Upvotes: 1

Views: 619

Answers (1)

Related Questions