SSL client example, anywhere ?
Posted: Sun Sep 01, 2013 6:51 am
Hi,
First time poster. Have been looking at ChibiOS for a project for a while now.
I have multiple configurations up and running on various Olimex and STM boards, including LWIP , so far so good.
Is anyone aware of an example where one of the lightweight SSL stacks has been configured and embedded as part of Chibios build ? PolarSSL, MatrixSSL or CyaSSL ?
I did come across a FreeRTOS CyaSSL sample, so it probably should fit.
Memory allocation issues sound scary though, just wondering what other people have done - allocate a small fixed pool for ssl stack only ? PolarSSL blog has an article about "heapless existence", not sure how well it works in practice. Also would you bake just one particular root cert into flash space, or just the hash of the cert or what .. Also, how would one go about entropy gathering on a small Cortex-M3 ? Reading ADC values with a floating pin ?
Anyway, i'm going to try and configure one of these for my project, and if i get any useful results i'll post a sample project here. However, I easily may end up deciding its not worth the hassle and just encrypt http traffic with pre-shared key, i have relatively small data payloads coming from a server.
First time poster. Have been looking at ChibiOS for a project for a while now.
I have multiple configurations up and running on various Olimex and STM boards, including LWIP , so far so good.
Is anyone aware of an example where one of the lightweight SSL stacks has been configured and embedded as part of Chibios build ? PolarSSL, MatrixSSL or CyaSSL ?
I did come across a FreeRTOS CyaSSL sample, so it probably should fit.
Memory allocation issues sound scary though, just wondering what other people have done - allocate a small fixed pool for ssl stack only ? PolarSSL blog has an article about "heapless existence", not sure how well it works in practice. Also would you bake just one particular root cert into flash space, or just the hash of the cert or what .. Also, how would one go about entropy gathering on a small Cortex-M3 ? Reading ADC values with a floating pin ?
Anyway, i'm going to try and configure one of these for my project, and if i get any useful results i'll post a sample project here. However, I easily may end up deciding its not worth the hassle and just encrypt http traffic with pre-shared key, i have relatively small data payloads coming from a server.