Closed chinglee-iot closed 7 months ago
Close this PR due to no response. Feel free to reopen it if any further update.
Hi @chinglee-iot, I've tested your changes with the BG96 successfully. What would need to be done to get this PR merged into the main branch? A lot of cellular modules allow for SSL native sockets so I think support would be great.
Description
Cellular modem may support secure socket connection with modem specific APIs. This PR adds the secure socket layer options to enable secure socket connection with port layer APIs. Port has to implements the following functions with board specific AT commands:
For example, BG96 can define the following APIs in cellular_bg96_api.h for user to include and implement these APIs in cellular_bg96_api.c.
BG96 has to support
CELLULAR_SOCKET_OPTION_SSL_CONTEXT_ID
andCELLULAR_SOCKET_OPTION_SSL_USAGE
in the implementation ofCellular_SocketSetSockOpt
. For example,User of cellular interface can make use of port specific APIs to create a secure socket connection with the following example.
Test Steps
Checklist:
Related Issue
146
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.