Step 3: Test your revocation function
Use the CloudFront console to test your Connection Function with sample certificates. Navigate to the Connection Function in the console and use the Test tab.
Test with sample certificates
-
Paste a sample certificate in PEM format into the test interface
-
Optionally specify a client IP address for testing IP-based logic
-
Choose Test function to see the execution results
-
Review the execution logs to verify your function logic
Test with both valid and revoked certificates to ensure your function handles both scenarios correctly. The execution logs show console.log output and any errors that occur during function execution.