(MODULES-11067) Fix keytool output parsing
Change extract_fingerprint() function to scan for all certificate
fingerprints and sort before joining them.
The latest version of keytool doesn't always return certs in the same
order, so extract_fingerprint() can return a different string for
identical certs. Also extract_fingerprint() only scans for MD5 and SHA1
fingerprints; it should scan for all fingerprints.