[mbed-tls] Generate a self-signed trusted certificate for server / client