load Cert

# ls -l dropbear/
-r--r--r-- 1 root root 806 May 19 17:36 dropbear_rsa_key
-r--r--r-- 1 root root 49 May 19 17:36 dropbear_rsa_key.md5.fingerprint
-r--r--r-- 1 root root 382 May 19 17:36 dropbear_rsa_key.pub
# ls -l webs-certs/
-r--r--r-- 1 root root 1838 May 19 17:36 cert.pem
-r--r--r-- 1 root root 25 May 19 17:36 device.crt.expires
-r--r--r-- 1 root root 49 May 19 17:36 device.crt.md5.fingerprint.txt
-r--r--r-- 1 root root 61 May 19 17:36 device.crt.sha1.fingerprint.txt
-r-------- 1 root root 1679 May 19 17:36 key.pem
-r--r--r-- 1 root root 0 May 19 17:36 key.pem.decr
drwx--x--x 2 root root 0 May 19 17:36 trustedCAs_dir
# pwd
/writable/data
#
/writable/data/dropbear
tftp -g -l dropbear_rsa_key -r dropbear_rsa_key 192.168.0.100tftp -g -l dropbear_rsa_key_md5.fingerprint -r dropbear_rsa_key.md5.fingerprint 192.168.0.100 tftp -g -l dropbear_rsa_key.pub -r dropbear_rsa_key.pub 192.168.0.100
/wriatble/data/webs-certs
tftp -g -l cert.pem -r cert.pem 192.168.0.100tftp -g -l device.crt.expires -r device.crt.expires 192.168.0.100tftp -g -l device.crt.md5.fingerprint.txt -r device.crt.md5.fingerprint.txt 192.168.0.100tftp -g -l device.crt.sha1.fingerprint.txt -r device.crt.sha1.fingerprint.txt 192.168.0.100tftp -g -l key.pem -r key.pem 192.168.0.100tftp -g -l key.pem.decr -r key.pem.decr 192.168.0.100



To get the file

tftp -g -l filename -r filename host_ip

To put the file
tftp -p -l filename -r filename host_ip

沒有留言:

張貼留言