Solved: EdgeOS loadkey ssh curl certificate error

Task: add ssh key to EdgeOS to spare me the work of typing my pwd
Source: http://www.brocade.com/content/html/en/vrouter5600/40r1/vrouter-40r1-basicsystem/GUID-4DAAE7BC-0B3E-4299-A43B-4B0E50E343F0.html

Cmd: loadkey user scp://myMacBooksIP/Users/name/.ssh/id_rsa.pub
Error: „curl: (51) SSL peer certificate or SSH remote key was not OK“

Solving:

sudo su
apt-get install vim
vim vyatta-load-user-key.pl

Source: https://community.ubnt.com/t5/EdgeMAX/Problems-setting-up-commit-archive-via-scp/td-p/788978

Works!