jar - Different cert finger prints when signing on different machines -
the problem: copied .keystore
machine machine b had sources, created , signed jar.
when putting jar again machine a, fail authenticate.
after that, created jar on machine , signed on machine a, , time worked , jar able authenticate.
what missing??
the details: after coping keystore , keystorepassword packaged jar using: jarsigner -keystore good.keystore -storepass $(cat good.keystorepassword) my_jar.jar my_certificate
i printed certs of signed jar using: keytool -printcert -jarfile my_jar.jar
and got certificate fingerprints: md5: 01:...
i printed certs of keystore jar using: keytool -printcert -jarfile my_jar.jar
and got keystore cert using: keytool -exportcert -alias my_certificate -keystore good.keystore -storepass $(cat good.keystorepassword) > good.cert
, got certificate fingerprints: md5: 40:...
they don't match. worked doing same commands on original machine (from took keystore) , finger prints matched.
all through process, pointed correct keystoere, imagine signature match.
what missing?
Comments
Post a Comment