Interesting, it seems to undo after restart as I couldn't install another amtm package until running the command again. Obviously I am totally lost with Linux. But I guess this is good?
Hopefully someone can confirm.
Just ran into this myself and can confirm disabling certificate validation works running this from SSH:
echo insecure >> $HOME/.curlrc
However I'm not sure how to undo this...