|
From: Michael S. <mi...@st...> - 2014-12-04 18:46:57
|
Liliana Cabalantti wrote: > How can I do this ? > > The server certificate was generated during 'ant install', with default values (CN=localhost,O=EJBCA Sample,C=SE). > > Today, the appliance is connected to a network and has its own IP address. > > I tried the following, without success: > > 1. Change /etc/hostname to newhost > 2. Modify /etc/hosts > 3. Create a new end entity with CN=newhost. I also tried with the IP address > 4. Create a keystore (newhost) > 5. cp p12/newhost.jks /opt/jboss/jboss-as-7.1.1.Final/standalone/configuration/keystore/keystore.jks > 6. mv p12/newhost.jks tomcat.jks > 7. ant web-configure > 8. ant deploy-keystore > 9. Restart JBoss. > > Result: JBoss does nor start correctly: JBoss cannot alter mysql 'jboss'@'localhost' user for table 'AccessRulesData' and 'AdminEntityData'. Make sure the cert in p12/tomcat.jks matches one CA in p12/truststore.jks and the cert/key alias of the server key in p12/tomcat.jks matches the hostname in httpserver.hostname. Ciao, Michael. |