Skip to content
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

HTTPS server 'hello world' example #14

Open
hmckinlay opened this issue Nov 1, 2021 · 3 comments
Open

HTTPS server 'hello world' example #14

hmckinlay opened this issue Nov 1, 2021 · 3 comments
Assignees

Comments

@hmckinlay
Copy link

hmckinlay commented Nov 1, 2021

Environment: Windows based CubeIDE/CubeMX and a Nucleo-H753ZI

Is someone able to post a working 'hello world' web page example using the HTTPS server? One that works with Chrome and Firefox?

Right now in Firefox I get SSL_ERROR_NO_CYPHER_OVERLAP Chrome I get:
image

I have tried several combinations of cipher suites with no luck. Most of the config is from this example:
https://github.com/STMicroelectronics/x-cube-azrtos-h7/blob/main/Middlewares/ST/netxduo/samples/demo_netxduo_https.c

Similar to this the page does work in IE11 but enabling AEAD via CubeMX which defines NX_SECURE_ENABLE_AEAD_CIPHER doesn't seem help in Chrome and Firefox.
https://community.st.com/s/question/0D53W00000nZEvLSAW/http-to-https-web-server-on-stm32h735gdk-based-on-examples

CubeMX Crypto Core Settings:
image

CubeMX TLS Core settings:
image

Other references:
https://docs.microsoft.com/en-us/azure/rtos/netx-duo/netx-secure-tls/chapter2
https://docs.microsoft.com/en-us/azure/rtos/netx-duo/netx-duo-web-http/chapter2
https://github.com/STMicroelectronics/x-cube-azrtos-h7/tree/main/Projects/STM32H735G-DK/Applications/NetXDuo/Nx_WebServer

I now have nearly have working the basis of a functional system:

  • HTTP server
  • redirect from the base of the web server to /index.html
  • serving multiple files html/css/js
  • serving large pages
  • injecting an uptime server side variable into the page
  • AJAX to dynamically update the uptime
  • posting a new uptime back from the browser
  • basic authentication
@hmckinlay
Copy link
Author

Hello? Anyone?

@hmckinlay
Copy link
Author

Looks like the https server doesn't work with Chrome or Firefox

eclipse-threadx/netxduo#67

@ALABSTM
Copy link
Contributor

ALABSTM commented Jan 5, 2022

Hi @hmckinlay,

Excuse this delayed reply. Our development teams are already having a look to what you reported. We will get back to you as soon as they provide us with their feedback.

With regards,

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

4 participants