ojsde / dnb

OJS plugin that exports full texts and metadata to the Deutsche Nationalbibliothek (DNB)
GNU General Public License v2.0
3 stars 3 forks source link

Problem with Upload to DNB Hotfolder #16

Closed pentaquarks closed 6 months ago

pentaquarks commented 1 year ago

Articles cannot be uploaded although the plugin does not show any error messages. Also, there are no entries in both the php and curl error logs.

Our solution: We created a .ssh directory for the apache user (www-data), i.e /var/www/.ssh and added the known_hosts by hand.

Our question: The curl library contains a parameter CURLOPT_SSH_KNOWNHOSTS which expects a path to a known_hosts file. In the PHP curl extension, this parameter is missing, however, one can pass a MD5 hash to CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 (which could be read from a different file). So, we are wondering if the verification is really necessary or could be turned off.

What we are using:

ronste commented 10 months ago

Options implemented in https://github.com/ojsde/dnb/commit/1eaaa69cae625eae1f1e26484e046bca9ca28cf3 as discussed. Ready for testing.