I am not using certificate.
This is base 64 username AND password, this is working fine with real curl client
the API is not supporting separate base 64 for user and password
You are connecting to a https url. This can only work if the server uses a recognized certificate (unless you allow HttpClient to accept all certificates).