# JAR signing with Servoy: Public keys in reply and keystore

**URL:** <https://forum.servoy.com/t/jar-signing-with-servoy-public-keys-in-reply-and-keystore/12090>\
**Category:** Classic Servoy\
**Created:** [April 22, 2010, 11:18am UTC](https://forum.servoy.com/t/jar-signing-with-servoy-public-keys-in-reply-and-keystore/12090 "2010-04-22T11:18:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tokajac](https://avatars.discourse-cdn.com/v4/letter/t/838e76/32.png) [@Tokajac](https://forum.servoy.com/u/Tokajac)\
**Post date:** [April 22, 2010, 11:18am UTC](https://forum.servoy.com/t/jar-signing-with-servoy-public-keys-in-reply-and-keystore/12090/1 "2010-04-22T11:18:12Z")

</div>

Hi,

I’ve followed steps on

> **[Security: Cross-site Scripting | Docs](https://docs.servoy.com/guides/deploy/other-topics/security-cross-site-scripting?pageId=8099146)**

and precisely on:  
[http://wiki.servoy.com/display/tutorials/Creating+a+certificate+signed+by+a+trusted+third+party](http://wiki.servoy.com/display/tutorials/Creating+a+certificate+signed+by+a+trusted+third+party)  
keytool -import -alias MyPlugins -keystore mykeystore.ks -trustcacerts -file mykeystore.crt

I get:  
Enter keystore password:  
keytool error: java.lang.Exception: Public keys in reply and keystore don’t match

Any ideas, please?

Regards

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [April 22, 2010, 11:38am UTC](https://forum.servoy.com/t/jar-signing-with-servoy-public-keys-in-reply-and-keystore/12090/2 "2010-04-22T11:38:19Z")

</div>

what are you trying to do?  
Did you buy your own trusted certificate?

---

<div class="post-metadata">

**Author:** ![Tokajac](https://avatars.discourse-cdn.com/v4/letter/t/838e76/32.png) [@Tokajac](https://forum.servoy.com/u/Tokajac)\
**Post date:** [April 22, 2010, 2:17pm UTC](https://forum.servoy.com/t/jar-signing-with-servoy-public-keys-in-reply-and-keystore/12090/3 "2010-04-22T14:17:59Z")

</div>

Yes, i have unlimited wildcard certificate;

I generate CSR according to: Common Name, Organization, Department, City, State, Country, Key Size;

Than i get somename.csr and somename.jks;

From somename.csr, i generate the wildcarded certificate; somename.cer (somename.p7b);

When reach  
keytool -import -alias MyPlugins -keystore somename.jks -trustcacerts -file somename.crt

I get:  
Enter keystore password:  
keytool error: java.lang.Exception: Public keys in reply and keystore don’t match

Note: i double-checked the -alias and it’s same as the one at CSR;

Looking forward for your guidelines!

Regards
