Skip to content

WSS/SSL support for ESP32 -- README.md update #926

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
akdeb opened this issue Dec 28, 2024 · 7 comments
Closed

WSS/SSL support for ESP32 -- README.md update #926

akdeb opened this issue Dec 28, 2024 · 7 comments

Comments

@akdeb
Copy link
Contributor

akdeb commented Dec 28, 2024

Hi @Links2004
This lib has been working like a charm for WS but not for WSS for us. We are sending and receiving bidirectional audio to and from our python server but our server doesn't capture audio when using beginSSL with the correct CA.

The README says that this is only supported for:

wss / SSL
supported for:
wss client on the ESP8266
wss / SSL is not natively supported in WebSocketsServer however it is possible to achieve secure websockets by running the ?device behind an SSL proxy. See Nginx for a sample Nginx server configuration file to enable this.

Is WSS/SSL currently being supported on ESP32?

@akdeb akdeb changed the title WSS/SSL support for ESP32 -- UPDATE README.md WSS/SSL support for ESP32 -- README.md update Dec 28, 2024
@Links2004
Copy link
Owner

yes WSS / SSL is supported on the ESP32 (in client mode)
keep in minde that the encription needs additional CPU power on the ESP not sure how good this mixes with audio data.

@kakopappa
Copy link
Contributor

If it works for ws but not for wss it’s likely you are running out of memory. Have you tried enabling verbose logging ?

@akdeb
Copy link
Contributor Author

akdeb commented Dec 29, 2024

Makes sense, I also put up a PR here with the update #927 @Links2004

@akdeb
Copy link
Contributor Author

akdeb commented Dec 29, 2024

@kakopappa I currently have this setup in my platformio.ini. Would you add anything else to enable verbose logging?

monitor_filters =
  esp32_exception_decoder
  time
build_flags = 
    -D CORE_DEBUG_LEVEL=0
    ; -D BOARD_HAS_PSRAM=1`
board_build.partitions = partition.csv

@kakopappa
Copy link
Contributor

kakopappa commented Dec 29, 2024 via email

@Links2004
Copy link
Owner

setting DEBUG_ESP_PORT=Serial will print the debug messages for the lib to the set Serial port

@akdeb
Copy link
Contributor Author

akdeb commented Dec 29, 2024

Awesome thank you both! Debugging now and will close this issue.

@akdeb akdeb closed this as completed Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants