Added SHA256 fingerprint support

- SHA1 and SHA256 are requested by the security team (see https://bugzilla.novell.com/show_bug.cgi?id=875514#c6)
- refactored to share the code