OCSPCache is used for making OCSP requests and caching OCSP responses.
https://github.com/openssl/openssl/releases/tag/OpenSSL_1_0_2r
Run setup.sh in ./Example/Tests/Certs/DemoCA/
- Open Finder and drag
./Example/Tests/Certs/DemoCA/CA/root/root_CA.crt
onto the simulator window - Click allow
- Navigate in the simulator to
Settings->Profiles
and click on the downloaded profile - Click install
- Navigate in the simulator to
Settings->About->Certificate Trust Settings
- Enable the switch "Enable Full Trust For Root Certificates" for the installed certificate
Run the root OCSP Server run_root_ocsp_server.sh.
Run the intermediate OCSP Server run_intermediate_ocsp_server.sh.
- Run
pod install
in ./Example - Open
OCSPCache.xcworkspace
with Xcode
Test using the simulator or ensure that the device being used for testing has access to the OCSP server running locally.
Revoke the certificate with local OCSP URLs: revoke_local_ocsp_urls_cert.sh.
Revoke the intermediate certificate: revoke_intermediate_CA_cert.sh.