Add a check in InvokeCryptoEndpointAsync to ensure the X.509 certificates use RSA public keys.