fix: log transfer/transfer_server CLI commands #457
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The Transfer command was passing a hash instead of the FTPParameters, and passing the path instead of the certificate, and the server was not running, only being created.
Tested it by creating an RSA private key:
openssl genrsa -out rsa_private_key 2048
then a certificate:
openssl req -new -x509 -key rsa_private_key -out certificate.pem -subj "/CN=127.0.0.1"
then the required certfile:
cat rsa_private_key certificate.pem > certfile.pem
Then ran the server:
syskit log_runtime_archive transfer_server /home/kappes/test/transfer_dir/ 127.0.0.1 2124 /home/user/test/certfile user pwd true
Then transfered files:
syskit log_runtime_archive transfer 127.0.0.1 2124 /home/user/test/log_dir/ /home/user/test/certificate.pem user pwd true
#453 was mistakenly closed when deleting the branch it was on top of...