Skip to content

Commit

Permalink
board: pluto :device_persistent_keys: Copy all generated keys to flash
Browse files Browse the repository at this point in the history
This fixes and issue where originally a RSA key is generated.
We compute the md5 but later the files is missing.

Signed-off-by: Michael Hennerich <[email protected]>
  • Loading branch information
mhennerich committed Jul 13, 2022
1 parent 19749a3 commit b0ed105
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions board/pluto/device_persistent_keys
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ cat /proc/mounts | grep -q mtd2 || (echo "Filesystem not mounted use device_form

#dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
[[ ! -f ${KEYFILE} ]] && dropbearkey -t ecdsa -f ${KEYFILE}
install -D ${KEYFILE} -t /mnt/jffs2/etc/dropbear
install -D /etc/dropbear/dropbear_* -t /mnt/jffs2/etc/dropbear
cd /etc/dropbear
md5sum dropbear* /etc/dropbear/ 2>/dev/null > /mnt/jffs2/etc/dropbear/keys.md5
md5sum dropbear_* /etc/dropbear/ 2>/dev/null > /mnt/jffs2/etc/dropbear/keys.md5

if [ -f ${IDFILE} ]; then
install -D ${IDFILE} -t /mnt/jffs2/root/.ssh
Expand Down

0 comments on commit b0ed105

Please sign in to comment.