composer diagnoseでMissing pubkeyのとき


composerが急に調子が悪くなったので、composer diagnoseで診断した。
すると、下記のようなエラー。

$ composer diagnose
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys: FAIL
Missing pubkey for tags verification
Missing pubkey for dev verification
Run composer self-update --update-keys to set them up
Checking composer version: OK

Missing pubkeyと言われているので、下記コマンドを実行。

$ composer self-update --update-keys to set them up

https://composer.github.io/pubkeys.html
からkeyをコピペして(DevTags)貼り付けして完了。