• AVR Freaks

web_net_server_nvm_mpfs example project doesn't work with HTTPS

Author
nihle
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2014/10/07 15:19:03
  • Location: 0
  • Status: offline
2019/05/21 08:51:52 (permalink)
0

web_net_server_nvm_mpfs example project doesn't work with HTTPS

I'm having trouble getting the web_net_server_nvm_mpfs example project to work with HTTPS. It seems to work fine if I am using standard HTTP on port 80, and according to the Harmony Help documents, you should be able to switch the HTTP server to work with HTTPS simply by changing the port from 80->443. When I do this it crashes when trying to bring up the network stack, specifically the TCP_STACK_BringNetUp() command (See attached screenshot). Any idea's on why this is happening? I have replicated the issue with Harmony v2.04, v2.06 and v3.2.1
 
 

Attached Image(s)

#1

7 Replies Related Threads

    rainad
    Moderator
    • Total Posts : 1176
    • Reward points : 0
    • Joined: 2009/05/01 13:39:25
    • Location: 0
    • Status: offline
    Re: web_net_server_nvm_mpfs example project doesn't work with HTTPS 2019/05/21 10:28:47 (permalink)
    5 (1)
    The Harmony v3.x.y has no wolfSSL support yet, so HTTPS won't work - but it shouldn't crash either.
    The Harmony v2.06 project works fine for me as it is, out of the box.
    Can you try this project as it is in the distribution and see if it works for you?
    After that we can investigate the crash, which should not happen and needs to be fixed.
     
    #2
    nihle
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2014/10/07 15:19:03
    • Location: 0
    • Status: offline
    Re: web_net_server_nvm_mpfs example project doesn't work with HTTPS 2019/05/21 14:11:21 (permalink)
    0
    Okay, I retried harmony v2.06, but this time with the latest mplab(v5.20) and it works (I had v4.05 previously), though only with firefox, chrome doesn't seem to want to connect. Thank you
    #3
    rainad
    Moderator
    • Total Posts : 1176
    • Reward points : 0
    • Joined: 2009/05/01 13:39:25
    • Location: 0
    • Status: offline
    Re: web_net_server_nvm_mpfs example project doesn't work with HTTPS 2019/05/21 14:49:28 (permalink)
    0
    Chrome usually complains about the locally generated certificate. If you press "proceed to the unsafe site" (or something along this line) it will go ahead and the pages will be displayed.
     
    #4
    nihle
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2014/10/07 15:19:03
    • Location: 0
    • Status: offline
    Re: web_net_server_nvm_mpfs example project doesn't work with HTTPS 2019/05/21 14:53:20 (permalink)
    0
    I typed in "https://<my ip>" into both browsers, and ignored the security warning, Firefox displays the demo page, but chrome does not.
    #5
    Jim Nickerson
    User 452
    • Total Posts : 5942
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: web_net_server_nvm_mpfs example project doesn't work with HTTPS 2019/05/22 06:47:47 (permalink)
    #6
    BillP
    Super Member
    • Total Posts : 311
    • Reward points : 0
    • Joined: 2014/09/28 07:53:35
    • Location: CA
    • Status: offline
    Re: web_net_server_nvm_mpfs example project doesn't work with HTTPS 2019/05/22 07:02:31 (permalink)
    0
    Why include the wolfSSL library in Hv3 if there is no support?
    #7
    rainad
    Moderator
    • Total Posts : 1176
    • Reward points : 0
    • Joined: 2009/05/01 13:39:25
    • Location: 0
    • Status: offline
    Re: web_net_server_nvm_mpfs example project doesn't work with HTTPS 2019/05/22 10:22:41 (permalink)
    0
    There are already wolfSSL demos in the Harmony v3.
    We're working on the integration of the wolfSSL with the web_server demos and general TCP/IP demos.
     
    #8
    Jump to:
    © 2019 APG vNext Commercial Version 4.5