harbor | docker 설치

docker login 500 ERR

에러메세지

Error response from daemon: Get "https://harbor.example.com/v2/": received unexpected HTTP status: 500 Internal Server Error

에러는 이건데…어이가없는게 문제의 원인은 인증서..
harbor-core인증서중 private key파일이 rsa가 아니면 에러남.

openssl pkcs8 -in private_key.pem -out rsa_private_key.pem -nocrypt -traditional
base64 -w 0 rsa_private_key.pem

참고자료

https://www.claudiokuenzler.com/blog/958/running-harbor-registry-behind-reverse-proxy-solve-docker-push-errors