import sha512 to make sha512 ssl certs work

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
Merge pull request #5600 from unclejack/sha512_registry_support

import sha512 to make sha512 ssl certs work