[HACKING] Kali linux The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 에러 해결하기

최근에 테스트 기기로 쓰는 칼리에서 인증서 관련 에러가 났습니다.

#> noon@n341:/usr/share# apt-get update Get:1 http://kali.cs.nctu.edu.tw/kali kali-rolling InRelease [30.5 kB] Err:1 http://kali.cs.nctu.edu.tw/kali kali-rolling InRelease The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository devel@kali.org Fetched 30.5 kB in 2s (16.0 kB/s) Reading package lists… Done W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://kali.cs.nctu.edu.tw/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository devel@kali.org W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository devel@kali.org W: Some index files failed to download. They have been ignored, or old ones used instead.

요점을 정리하면…

“The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository devel@kali.org

“An error occurred during the signature verification. The repository is not updated and the previous index files will be used”

“ED444FF07D8D0BF6 시그니쳐가 잘못되어 받아올 수 없다” 라며 인증서 문제가 발생합니다. 다른 프로그램에서도 간혹 이런 인증서 관련 에러가 날때 새로 인증서를 갱신해줬습니다. 아마 최근에 있었던 2018 버전의 영향일 수도 있을 것 같구요.

Troubleshooting

gpg 통해서 keyserver에서 새로 키를 받아줍니다. 크리고 apt에 추가해주면 끝.

#> noon@n341:/usr/share# gpg –keyserver pgpkeys.mit.edu –recv-key ED444FF07D8D0BF6 #> noon@n341:/usr/share# gpg -a –export ED444FF07D8D0BF6 | sudo apt-key add -

(칼리가 데비안 base라 좋네요. 뭔가 익숙함.. 하던짓거리도 거의 그대로 먹히고)

#> noon@n341:/usr/share# apt-get update Get:1 http://kali.cs.nctu.edu.tw/kali kali-rolling InRelease [30.5 kB] Get:2 http://kali.cs.nctu.edu.tw/kali kali-rolling/non-free Sources [121 kB] Get:3 http://kali.cs.nctu.edu.tw/kali kali-rolling/contrib Sources [65.5 kB] Get:4 http://kali.cs.nctu.edu.tw/kali kali-rolling/main Sources [11.8 MB] Get:5 http://kali.cs.nctu.edu.tw/kali kali-rolling/main amd64 Packages [16.0 MB] Get:6 http://kali.cs.nctu.edu.tw/kali kali-rolling/contrib amd64 Packages [106 kB] Get:7 http://kali.cs.nctu.edu.tw/kali kali-rolling/non-free amd64 Packages [164 kB]

잘 됩니다 :)