java - UNKNOWN publisher even after signing the JAR using trusted certificate -


i have signed jar file using certificate received trusted ca. followed complete code-signing process creating keystore, create csr, submitting csr ca , receive certificate , importing certificates keystore (root, chain , code-signing certificates) , sign jar file.

i have above in below steps

keytool -genkey -keyalg rsa -keysize 2048 -alias myalias -dname "cn=##,o=##,l=##,st=##,c=##" -keystore mykeystore -storepass mypass  keytool -certreq -alias myalias -file certreq1.pem -keystore mykeystore keytool -import -trustcacerts -alias myalias1 -file root.crt -keystore mykeystore keytool -import -trustcacerts -alias myalias2 -file chain.crt -keystore mykeystore keytool -import -alias myalias3 -file certificate.crt -keystore mykeystore  jarsigner -keystore mykeystore applet.jar myalias 

but still when open in browser, getting publisher 'unknown'. doing wrong here?

i found did incorreclty. while importing code-signing certificate, should use same alias original one.

keytool -import -alias **myalias** -file certificate.crt -keystore mykeystore 

once done, works.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

sql - Duplicate Column name error while executing mysql query? -