TLSScoket issue in Nuvoton-IoTM487
parthibanNVS opened this issue · 4 comments
Hi, this project i configured it for IoT-M487 kit from nuvoton in mbedapp.json but is throwing error for tlssocket as shown below
**"Compile [ 1.9%]: AWSClient.cpp
[Error] AWSClient.h@52,5: unknown type name 'TLSSocket'; did you mean 'TCPSocket'?
[Error] AWSClient.cpp@271,28: undeclared identifier 'TLSSocket' in destructor name
[Error] AWSClient.cpp@272,34: unknown type name 'TLSSocket'; did you mean 'TCPSocket'?
[Error] AWSClient.cpp@275,27: no member named 'set_hostname' in 'TCPSocket'
[Error] AWSClient.cpp@278,27: no member named 'set_client_cert_key' in 'TCPSocket'
[Error] AWSClient.cpp@284,27: no member named 'set_ca_chain' in 'TCPSocket'
[ERROR] In file included from .\mbed-client-for-aws\source\AWSClient.cpp:26:
./mbed-client-for-aws/include/AWSClient\AWSClient.h:52:5: error: unknown type name 'TLSSocket'; did you mean 'TCPSocket'?
TLSSocket socket;
^~~~~~~~~
TCPSocket
./mbed-os/connectivity/netsocket/include\netsocket/TCPSocket.h:33:7: note: 'TCPSocket' declared here
class TCPSocket : public InternetSocket {
^
.\mbed-client-for-aws\source\AWSClient.cpp:271:28: error: undeclared identifier 'TLSSocket' in destructor name
networkContext.socket.~TLSSocket();
^~~~~~~~~
TCPSocket
.\mbed-client-for-aws\source\AWSClient.cpp:272:34: error: unknown type name 'TLSSocket'; did you mean 'TCPSocket'?
new (&networkContext.socket) TLSSocket();
^~~~~~~~~
TCPSocket
./mbed-os/connectivity/netsocket/include\netsocket/TCPSocket.h:33:7: note: 'TCPSocket' declared here
class TCPSocket : public InternetSocket {
^
.\mbed-client-for-aws\source\AWSClient.cpp:275:27: error: no member named 'set_hostname' in 'TCPSocket'
networkContext.socket.set_hostname(hostname);
.\mbed-client-for-aws\source\AWSClient.cpp:278:27: error: no member named 'set_client_cert_key' in 'TCPSocket'
networkContext.socket.set_client_cert_key(creds.clientCrt,
~~~~~~~~~~~~~~~~~~~~~ ^
.\mbed-client-for-aws\source\AWSClient.cpp:284:27: error: no member named 'set_ca_chain' in 'TCPSocket'
networkContext.socket.set_ca_chain(&rootCA);
~~~~~~~~~~~~~~~~~~~~~ ^
6 errors generated."**
is this project support this target or how I can resolve this issue?
@parthibanNVS This issue has an incomplete or old issue template.For future reference please use an up to date clone of the repository before raising issues. Many thanks.
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers.
Internal Jira reference: https://jira.arm.com/browse/IOTOSM-4067
Hi @parthibanNVS,
TLS requires an entropy source, usually TRNG (true random number generator), in order to transfer data securely. But NUMAKER_IOT_M487 doesn't have it, see discussion in ARMmbed/mbed-os#11680, so TLSSocket and the Mbed TLS functionalities it depends on can't be enabled.
An alternative option is to add an NV seed support, useful for targets without TRNG. See this documentation for how to do this.