(reformat-private-key-if-needed s)
JSch expects a private key with new-line characters as described in RFC-4716. However, it's usefull to pass private keys around as a single-line string where new-lines are replaced with space. This fn will convert a single-line private key back to multi-line format and make JSch happy.
JSch expects a private key with new-line characters as described in RFC-4716. However, it's usefull to pass private keys around as a single-line string where new-lines are replaced with space. This fn will convert a single-line private key back to multi-line format and make JSch happy.
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |