The Key Management Service (KMS) endpoint cannot be accessed because HTTPS is not enabled when you use the SDK for access.

To ensure your data security, KMS supports only HTTPS. Make sure that HTTPS is enabled when you use the SDK for access.

req.setProtocol(ProtocolType.HTTPS);