How to generate x509 certificate for keystore?
I was tried keytool from sun:
and this bean definition:Code:keytool -selfcert -alias user -keypass password -dname "cn=asd, ou=Development, o=asdasdsa, c=AU"
But compiler said thatCode:<bean id="secureClientHelper" class="XwssClientHelper"> <constructor-arg value="securityPolicy.xml"/> <constructor-arg> <bean class="org.springframework.ws.soap.security.xwss.callback.KeyStoreCallbackHandler"> <property name="trustStore"> <bean class="org.springframework.ws.soap.security.support.KeyStoreFactoryBean"> <property name="location" value="test-keystore.jks"/> <property name="password" value="password"/> </bean> </property> <property name="defaultAlias" value="user"/> <property name="privateKeyPassword" value="password"/> </bean> </constructor-arg> </bean>
Code:29.10.2007 16:35:08 com.sun.xml.wss.impl.misc.DefaultSecurityEnvironmentImpl getAliasPrivKeyCertRequest SEVERE: WSS0216: Callback Handler failed for SignatureKeyCallback.AliasPrivKeyCertRequest 29.10.2007 16:35:08 com.sun.xml.wss.impl.misc.DefaultSecurityEnvironmentImpl getAliasPrivKeyCertRequest SEVERE: WSS0217: Exception in Callback Handler handle() java.lang.NullPointerException at org.springframework.ws.soap.security.xwss.callback.KeyStoreCallbackHandler.getPrivateKey(KeyStoreCallbackHandler.java:440) at org.springframework.ws.soap.security.xwss.callback.KeyStoreCallbackHandler.handleAliasPrivKeyCertRequest(KeyStoreCallbackHandler.java:237) at org.springframework.ws.soap.security.xwss.callback.CryptographyCallbackHandler.handlePrivKeyCertRequest(CryptographyCallbackHandler.java:364)


Reply With Quote