summaryrefslogtreecommitdiff
path: root/doc/forum/Could_not_load_host_key:___47__etc__47__ssh__47__ssh__95__host__95__ed25519__95__key/comment_2_0197951e17a4a47cce74ce6cc4108d50._comment
blob: 284fafbc13f4dd2f36777b833f5534d7f1b14d15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[[!comment format=mdwn
 username="joey"
 subject="""comment 2"""
 date="2015-09-10T21:00:46Z"
 content="""
If you look at `setPrivDataTo`, it explicitly chomps all trailing newlines
from the value. I think that I did that because it's easy to accidentially
add a newline you don't want when eg, pasting in a password.

So, one solution might be to make --set --from-file load
a file into privdata as-is. But, that seems like complication;
you'd need to remember when to use it.

I think it's better for the ssh property (and any other affected
properties) to be changed, to add a final newline to the value from
privdata when one is missing. Does this problem only affect ed25519
keys, or others too? Only private keys or also public?

I am currently extremely busy, so a patch would be great.
"""]]