Background (please complete the following information):
Describe the bug
Sometimes - when bad luck is involved - the standalone SFTP server fails to load existing certificates when installed into a daemon that has been run before.
The ASN1 library of Go complains:
{"error": "asn1: structure error: integer not minimally-encoded"}
Often, this can be fixed by deleting the certificate files in config/.sftp/ and letting the standalone SFTP server generate them.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The standalone SFTP server should start normally.
Actual behavior
The standalone SFTP server crashes.
This is a pretty common bug, not sure why it happens but the fix is so simple I'm not worried about it. The end goal is moving entirely away from the internal SFTP server anyways, so this won't be a problem in the long run.
In that case, now the issue will show up in Google at least :sweat_smile:
Most helpful comment
In that case, now the issue will show up in Google at least :sweat_smile: