-
Notifications
You must be signed in to change notification settings - Fork 79
docs: dracut-crypt-ssh keys name and format fix #743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
6b24aab
to
e7d0de6
Compare
|
||
mkdir -p /etc/dropbear | ||
for keytype in rsa ecdsa ed25519; do | ||
ssh-keygen -g -N "" -m PEM -t "${keytype}" -f "/etc/dropbear/ssh_dracut_host_${keytype}_key" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave the output files named as the later directions require, rather than changing those as well.
ssh-keygen -g -N "" -m PEM -t "${keytype}" -f "/etc/dropbear/ssh_dracut_host_${keytype}_key" | |
ssh-keygen -g -N "" -m PEM -t "${keytype}" -f "/etc/dropbear/ssh_host_${keytype}_key" |
# Copy system keys for consistent access | ||
dropbear_rsa_key=/etc/dropbear/ssh_host_rsa_key | ||
dropbear_ecdsa_key=/etc/dropbear/ssh_host_ecdsa_key | ||
# Point to host keys made earlier | ||
dropbear_rsa_key=/etc/dropbear/ssh_dracut_host_rsa_key | ||
dropbear_ecdsa_key=/etc/dropbear/ssh_dracut_host_ecdsa_key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop changes in light of edits above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Paraphrasing from irc for transparency:
Am unsure whether Copy system keys...
line makes sense since we're not using our system keys in that case. This rename is the same reason I've changed the name above as, following the guide, the user makes separate keys just for dracut-included dropbear.
I'll add these in if you/team insist on this phrasing
Co-authored-by: Andrew J. Hesford <ajh@sideband.org>
As discussed on IRC, fixes the instructions for key creation for dracut-crypt-ssh module, preserving the instructions for mkinitcpio