Unable to upload files to Digital Ocean Space using .Net Core app

Posted August 17, 2021 93 views
DevelopmentDigitalOcean Spaces


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:

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.

Mohamed Shlibik

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

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”: “

URL after:
“EndPoint”: “

There was also a Typo mistake in the bucket name that we fixed.

Mohamed Shlibik