Public Key Parameter Extraction from Certificate

Hi,
We are trying to parse the certificate and pass the public key parameters N and E to the hardware accelerator. But with mbedtls library functions, we are unable to get the pointers to these public key components.
Is there any way we can get this done, with minimal or no changes?