Issue deploying kubernetes MongoDB with SSL

I am trying to deploy a MongoDB with TLS authenticated (following these steps My database works properly when TLS is not enabled. The kubernetes mongo operator properly creates the csrs and I am able to approve them but then I receive the following error:

NETWORK [main] cannot read certificate file: /mongodb-automation/server.pem error:0906D06C:PEM routines:PEM_read_bio:no start line
CONTROL [main] Failed global initialization: InvalidSSLConfiguration: can not set up PEM key file

As these certificates are created by the kubernetes mongo system, I am unsure as to why they would not work/what I am missing.

Any advise/information/ideas would be greatly appreciated!

Thank you in advanced,

Hi Calla, thanks for reporting

can you please share the structure of the secret in kubernetes

the secret is resource-cert which contains one entry per pod with name resource-index-pem with the whole contents of the pem file

Let us know if this helps