Hi, > I am hitting another error when publishing a cert (to a local file). I see > the cert file is written > to local directory, but with a 777 permission which I think is wrong.
I observed a similar same problem recently, if the file does not exist, it is created with the system umask. If it exists, it gets properly written with the permissions set in the configuration. It is probably easy to fix on your side: Add the configuration setting mode: "0644" on the same level as "content:" and "file:", this setting defines the octal file mode of the published file. Mind the quote characters and the leading zero. Once this is done, restart the server and repeat the publication process with the target file already in place. Check if the permissions are OK when the file is rewritten, it should be OK then. > Here is the error message right after publishing is finished. > > 2023/02/25 18:19:34 INFO Workflow 2303/certificate_publishing/SUCCESS > executed 'certpublish_publish_profile' (autorun) in state 'PUBLISH' > [pid=75782|user=ra-liu|role=System|sid=HhEJ|wftype=certificate_publishing|wfid=2303] > 2023/02/25 18:19:34 INFO Workflow 2303/certificate_publishing/SUCCESS changed > from state 'PUBLISH' > [pid=75782|user=ra-liu|role=System|sid=HhEJ|wftype=certificate_publishing|wfid=2303] > 2023/02/25 18:19:53 ERROR > I18N_OPENXPKI_TEMPLATE_ERROR_PARSING_TEMPLATE_FOR_PARAM; __ERROR__ => file > error - parse error - input text line 3: unexpected token (END) > [% END %], __TEMPLATE__ => [%I IF meta_email %] > I18N_OPENXPKI_UI_WORKFLOW_FIELD_META_EMAIL_LABEL: [% FOREACH mail = > meta_email %] > <a href="mailto:[% mail %]">[% mail %]</a>, > [% END %][% END %] > [pid=75725|sid=Av82] > > I am not sure if these are related to the publishing. The error message indicates that you have an error in your Template code. > __TEMPLATE__ => [%I IF meta_email % The I following the percent sign looks fishy :) Cheers Martin _______________________________________________ OpenXPKI-users mailing list OpenXPKI-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openxpki-users