Report this

What is the reason for this report?

What port should be used for a HTTPS PUT request to spaces? Also doe such a request require cert and private keys?

Posted on April 7, 2019

I’m able to push files via a PUT request in POSTMAN and python requests, but haven’t been successful with an ESP32 device. It’s unclear what port is being used by POSTMAN and python requests. Also it is unclear if the error has to do with trying to establish a connection without a cert or private key. Any suggestions would be appreciated.

A blog post shows to use AWS with a similar device in the link below requires adding in the certificates, but not sure how to do this with DO or if it is really required.

https://esp32.com/viewtopic.php?f=2&t=9374



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!

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.

Hello,

Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.

To troubleshoot issues with your ESP32 device, you may want to consider checking the following:

  1. Port: Typically, HTTPS (HTTP over SSL/TLS) uses port 443, whereas unsecured HTTP uses port 80. Make sure you’re using the correct port for the connection.

  2. Certificates: SSL/TLS certificates are commonly needed for HTTPS connections. You can obtain a certificate for your domain and add it to your DigitalOcean server. A convenient option is using a free certificate from Let’s Encrypt.

  3. Consult the DigitalOcean Spaces API documentation to understand the correct way of making requests: DigitalOcean Spaces API Documentation.

For your ESP32 device, you should consult the device’s documentation or community forums for specific instructions regarding SSL/TLS certificate implementation and using HTTPS requests. I hope this helps! Let me know if you need further assistance.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.