Loads the certificate chain from the URL.
This method use the validated certificate url to retrieve certificate chain
URL for retrieving certificate chain
Load certificate chain
This method loads the certificate chain from the certificate cache. If there is a cache miss, the certificate chain is loaded from the certificate URL. If certificate chain is loaded from URL, validate it before return.
URL for retrieving certificate chain
Validate certificate chain
This method uses the crypto module pki functions to validate the signature chain It checks if the passed in certificate chain is valid, i.e it is not expired and the Alexa domain is present in the SAN extensions of the certificate chain.
Certificate chain in pem format
Validate the URL containing the certificate chain
This method validates if the URL provided adheres to the format mentioned here : https://developer.amazon.com/docs/custom-skills/host-a-custom-skill-as-a-web-service.html#cert-verify-signature-certificate-url
URL for retrieving certificate chain
Validate the request body hash with signature
This method checks if the hash value of the request body matches with the hash value of the signature
Certificate chain in pem format
Encrypted signature of the request
Request body of the input POST request in string format
Validate Url and retrieve certificate chain
This method validates if the URL is valid and loads the certificate chain, before returning it.
URL for retrieving certificate chain
Verifies the certificate authenticity.
This verifier uses the crypto module pki functions to validate the signature chain in the input request. The verification follows the mechanism explained here : https://developer.amazon.com/docs/custom-skills/host-a-custom-skill-as-a-web-service.html#checking-the-signature-of-the-request
Request body of the input POST request in string format
Headers of the input POST request
Implementation of Verifier which provides a utility method to verify the signature of a skill request.