By Shlibik
Dears
My application is trying to upload files to DO Space using the code mentioned here:
Unfortunately, it didn’t work, we added the following modifications to the code: “FilePath = filePath” became “InputStream = fileToUpload.Stream”
But still, we are facing the same exception, the exception is as follows:
System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. —> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception.
The exception occurs in the following line: fileTransferUtility.Upload(fileTransferUtilityRequest);
Please note that we are using .NET Core to run our application.
Kindly please help if there is anything that can be done to solve this issue.
BR, Mohamed Shlibik
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
We managed to successfully upload files to DO space. the modification that we did is to remove the bucket name from the EndPoint URL as follows:
URL before: “EndPoint”: “https://tpspace.fra1.digitaloceanspaces.com/”
URL after: “EndPoint”: “https://fra1.digitaloceanspaces.com”
There was also a Typo mistake in the bucket name that we fixed.
BR, Mohamed Shlibik
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.