When exporting the certificate, the file type is not specified (the file is unloaded without the extension).
Thanks, this happens because the name is cleaned and special characters are removed. See related https://github.com/mdjnelson/moodle-mod_customcert/issues/132.