MYCertificate now checks validity of self-signed certs loaded from the keychain (because the Security framework doesn't validate self-signed certs.)
1 -----BEGIN CERTIFICATE-----
2 MIIFXDCCBESgAwIBAgIIGobFgVhxq7UwDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV
3 BAYTAlVTMRMwEQYDVQQKDApBcHBsZSBJbmMuMSwwKgYDVQQLDCNBcHBsZSBXb3Js
4 ZHdpZGUgRGV2ZWxvcGVyIFJlbGF0aW9uczFEMEIGA1UEAww7QXBwbGUgV29ybGR3
5 aWRlIERldmVsb3BlciBSZWxhdGlvbnMgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkw
6 HhcNMDkwMzMxMDUxODMxWhcNMTAwMzMxMDUxODMxWjBQMRowGAYKCZImiZPyLGQB
7 AQwKWE5YQVlGOU45NzElMCMGA1UEAwwcaVBob25lIERldmVsb3BlcjogSmVucyBB
8 bGZrZTELMAkGA1UEBhMCVVMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
9 AQDAnbltHERIUGlrXpuiI7zJq34WuVotTSOhGbquWN9JanqesgwBqEMQLI2rcHgl
10 jdxwpmIuTS3vYUi8skKnn0M3NZay3/jD9pjJdbvj27B5O/OHF0vQ3wvVgyKaD/DF
11 qxKtC8NPr3pfTM3qZ1c/ItyyJqLwQEIaqm4DQ24eZW7XP+WDmCW2pKddwSDbhMX4
12 IYnZYUIofRREpEVqxFM3eOYQ5d2QuOtEOagE+Cmll+mR9izNdUk/rQqtMcM0uW4v
13 DGQA8eNG9lkQ+NEgDJiamI4R4laR6JoJv8u/+brcKMWB5MzjOwB8H2vDVmbUKQHA
14 TNdGIT5O1S/QrK1fx6zbUsCjAgMBAAGjggHxMIIB7TAMBgNVHRMBAf8EAjAAMA4G
15 A1UdDwEB/wQEAwIHgDAWBgNVHSUBAf8EDDAKBggrBgEFBQcDAzAdBgNVHQ4EFgQU
16 JiwPQTnjJffW28sAv/MUYRR4SIUwHwYDVR0jBBgwFoAUiCcXCam2GGCL7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