We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b8471d + 9fb4972 commit 962a852Copy full SHA for 962a852
lib/puppet/provider/java_ks/keytool.rb
@@ -173,7 +173,11 @@ def exists?
173
174
# Extracts the fingerprints of a given output
175
def extract_fingerprint(output)
176
- output.scan(%r{Certificate fingerprints:\n\s+(?:MD5: .*\n\s+)?SHA1: (.*)}).flatten.join('/')
+ fps = []
177
+ output.scan(%r{^Certificate fingerprints:(.*?)Signature?}m).flatten.each do |certblock|
178
+ fps.push(certblock.scan(%r{^\s+\S+:\s+(\S+)}m))
179
+ end
180
+ fps.flatten.sort.join('/')
181
end
182
183
# Reading the fingerprint of the certificate on disk.
0 commit comments