Paperless-NGX Community app mounting external dataset

Hello!
I have managed to install paperless-ngx with the community app catalogue. Now I am trying to pass a selfsigned certificate to the software with PAPERLESS_EMAIL_CERTIFICATE_LOCATION environment variable. However the problem is no matter how I set the file access rights the paperless container complains about having no access to the certificate file. What am I doing wrong?