# scp ./cert.pem root@esxi.XXX.de:/etc/vmware/ssl/rui.crt # scp ...
opnsense[82577] /usr/local/opnsense/scripts/OPNsense/AcmeClient/upload_sftp.php: Command execution failed, exit code 2. Last input was: {"host":"esxi.XXX.de","host-key":"","port":"22","identity-type":"rsa","user":"root","remote-path":"/etc/vmware/ssl","chgrp":"","chmod":"","chmod-key":"","cert-name":"rui.crt","key-name":"rui.key","ca-name":"ca.pem","fullchain-name":"castore.pem","certificates":"xxx","automation-id":"xxx"}opnsense[82577] /usr/local/opnsense/scripts/OPNsense/AcmeClient/upload_sftp.php: Failed on {"source":"/tmp/sftp-upload-3UmGMx","target":"ca.pem","mode":"0440","group":false,"delete_source":true}opnsense[82577] /usr/local/opnsense/scripts/OPNsense/AcmeClient/upload_sftp.php: Failed uploading file '/tmp/sftp-upload-3UmGMx' to 'ca.pem' ; Cause: {"file_not_found":true,"error":"Couldn't fsetstat: No such file or directory"}opnsense[69190] AcmeClient: running automation: uploadESXIopnsense[69190] AcmeClient: running automation: restartGUIopnsense[69190] AcmeClient: running automations for certificate: *.xxx.de
[root@esxi:/etc/vmware/ssl] ls -la[...]-rw------- 1 root root 11 Sep 11 20:40 sftp-upload-4Q85Il-rw------- 1 root root 11 Sep 11 20:40 sftp-upload-HC3pkO-rw------- 1 root root 11 Sep 11 20:39 sftp-upload-Q5ZeG2[root@esxi:/etc/vmware/ssl] cat sftp-upload-Q5ZeG2upload-test
2021-09-11T22:23:26 opnsense[84570] /usr/local/opnsense/scripts/OPNsense/AcmeClient/upload_sftp.php: Failed uploading file '/tmp/sftp-upload-YzGRyN' to 'ca.pem' ; Cause: {"file_not_found":true,"error":"Couldn't fsetstat: No such file or directory"}