Looks like your authorization header is incorrect. It should be in the format as follows,
Authorization : Basic base64encoded(User ID:Password)
I used the PHP sample code. They needed the certificates with the user id and password.
Thanks for pinting me to the sample codes.
I'm having an new error now about:
Error: "SSL: Can't load the certificate "/Applications/XAMPP/htdocs/visa/cert.pem" and its private key: OSStatus -25299" - Code: 58
This can happen due to two reasons, either the path you have provided in the code can't be resolved or the certificates are not avaiable in that path.
Hope you had a great weekend.
I searched about the error I got, it seems it's a OS X issue.
I'll try deploying it in a Linux environment. Any chance you could tell me your deployment environment?