RSA and PEM key format on ESP32

Hello, I am using ESP32 Dev Module, which supports MbedTLS. I have two questions:
1.Is there any way to import RSA keys from string(ideally from PEM format) to mbedtls_pk context?
2.How to encrypt with RSA private key and decrypt with RSA public key?