![]() |
Network Component
Version 7.1
MDK Middleware for IPv4 and IPv6 Networking
|
The Network Component offers secure software components that are using mbed TLS. The user of the Network Component does not see the mbed TLS API as it is hidden by the standard API of the secure component.
Currently, the following component is available in a secure variant:
To be able to communicate securely, you will need to generate appropriate certificates. The section Creating your own Certificates and Keys explains how to achieve this for the secure components by using additional tools that are part of the Network Component.
The web server and the compact web server have secure variants available. In the Manage Run-Time Environment window simply select the appropriate variant:
It is also possible to convert an already existing (compact) web server to a secure HTTPS web server. A few simple steps are required to achieve this:
Net_Security.c
to the project which contains test keys/certificates. To change them, follow the steps provided in Creating your own Certificates and Keys.mbedTLS_Config.h
configuration file with the following: startup_xxx.s
and set RTX_Conf_CM.c
) and make these changes:Net_Config_HTTP_Server.h
):Net_Config.c
file.The Network Component's HTTPS service adds the file Net_Security.c
to the project. This file contains generic test keys/certificates which enable the application to run out of the box. If you want to adapt the keys/certificates to your needs, you can do this by modifying this file or by executing the batch file Net_Security.bat
that is part of the Network Component.
Net_Security.bat
can be registered in µVision under Tools for general usage:
$PRTE\Network\Net_Security.bat
$PRTE\Network
@K
This setting is needed only once in µVision and will work for any project since it uses project related folders.
The file Net_Security.bat
is copied to the project (.\RTE\Network) folder together with Net_Security.c
. As it is project specific, the batch file can be customized to reflect your specific values for the certificates:
The beginning of the file contains some environment settings that can also be changed:
As soon as you run the batch file from the Tools menu, it will create the keys/certificates and change the Net_Security.c
automatically to reflect the changes. You can then continue building the project.