<div dir="ltr">Hi, <div><br></div><div><br></div><div>As far as I see, port 8443 is not occupied and tomcat6 is running:</div><div><br></div><div><div>root@host /usr/share/oat-client/script # netstat -anp | grep 8443</div>
<div>root@host /usr/share/oat-client/script # service tomcat6 status</div><div>tomcat6 (pid 30950) is running... [ OK ]</div></div><div><br></div><div><br></div><div>Also, just in case, I've checked if disabling iptables helps, and it doesn't;</div>
<div><br></div><div><br></div><div>In the error trace, there is a line: </div><div><b>java.io.FileNotFoundException: /usr/share/oat-client/aik.cer (No such file or directory)</b><br></div><div><b><br></b></div><div>and indeed, there is not file aik.cer at /usr/share/oat-client/aik.cer; when is it supposed to</div>
<div>be generated?</div><div><br></div><div>cheers,</div><div>/Nicolae</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 14 November 2013 04:32, Wei, Gang <span dir="ltr"><<a href="mailto:gang.wei@intel.com" target="_blank">gang.wei@intel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">And you need to copy files from server to client before you try to run<br>
provisioner.sh every time you run OAT_configure.sh again.<br>
<br>
Jimmy<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
> -----Original Message-----<br>
> From: Wei, Gang<br>
> Sent: Thursday, November 14, 2013 11:26 AM<br>
> To: Nicolae Paladi<br>
> Cc: Doron Fediuck; <a href="mailto:users@ovirt.org">users@ovirt.org</a>; Wei, Gang<br>
> Subject: RE: [Users] Trusted Pools and CentOS 6 packages<br>
><br>
> Can you try netstat -anp | grep 8443? Maybe it is occupied by apache.<br>
><br>
> Meanwhile check whether tomcat is up.<br>
><br>
> Jimmy<br>
><br>
><br>
> > -----Original Message-----<br>
> > From: Nicolae Paladi [mailto:<a href="mailto:n.paladi@gmail.com">n.paladi@gmail.com</a>]<br>
> > Sent: Wednesday, November 13, 2013 10:43 PM<br>
> > To: Wei, Gang<br>
> > Cc: Doron Fediuck; <a href="mailto:users@ovirt.org">users@ovirt.org</a><br>
> > Subject: Re: [Users] Trusted Pools and CentOS 6 packages<br>
> ><br>
> > Hi,<br>
> ><br>
> > I am using port 8443, since no other process -- as far as I know -- is<br>
> using it;<br>
> ><br>
> > below you will find all of the requested configuration files:<br>
> ><br>
> > Contents of /etc/oat_client/*:<br>
> > log4j.properties: <a href="http://pastebin.com/MQLM68vs" target="_blank">http://pastebin.com/MQLM68vs</a><br>
> > OAT.properties: <a href="http://pastebin.com/LwHihxah" target="_blank">http://pastebin.com/LwHihxah</a><br>
> > OATprovisioner.properties: <a href="http://pastebin.com/0x5TShtZ" target="_blank">http://pastebin.com/0x5TShtZ</a><br>
> > TPMModule.properties: <a href="http://pastebin.com/hvw9gfRE" target="_blank">http://pastebin.com/hvw9gfRE</a><br>
> ><br>
> ><br>
> > server.xml: <a href="http://pastebin.com/VZ9Vk6iC" target="_blank">http://pastebin.com/VZ9Vk6iC</a><br>
> > OAT_client.sh: <a href="http://pastebin.com/St4yCGcF" target="_blank">http://pastebin.com/St4yCGcF</a><br>
> ><br>
> > provisioner.sh: <a href="http://pastebin.com/RedqQt8V" target="_blank">http://pastebin.com/RedqQt8V</a><br>
> ><br>
> ><br>
> > cheers,<br>
> > /Nicolae.<br>
> ><br>
> ><br>
> > On 13 November 2013 14:47, Wei, Gang <<a href="mailto:gang.wei@intel.com">gang.wei@intel.com</a>> wrote:<br>
> ><br>
> ><br>
> > This time it failed earlier. Looks like the PCA webservice2 was not<br>
> > listening on 8443 port. Have you replaced the port 8443 with 8442 in<br>
> > server<br>
> > side ($TOMCAT_HOME/conf/server.xml) but not change it in client side<br>
> > (/usr/share/oat-client/script/OAT_client.sh)? Or the 8443 port is<br>
> occupied<br>
> > by another app?<br>
> ><br>
> > Please copy the content from your current server.xml, OAT_client.sh,<br>
> > provisioner.sh and /etc/oat-client/* into the content of your reply<br>
> for<br>
> > analysis. (don't attach *.sh as attachments, that will get filtered<br>
> by my<br>
> > company's mailing system).<br>
> ><br>
> > Thanks<br>
> > Jimmy<br>
> ><br>
> ><br>
> ><br>
> > > -----Original Message-----<br>
> > > From: Nicolae Paladi [mailto:<a href="mailto:n.paladi@gmail.com">n.paladi@gmail.com</a>]<br>
> > > Sent: Wednesday, November 13, 2013 7:01 PM<br>
> > > To: Wei, Gang<br>
> > > Cc: Doron Fediuck; <a href="mailto:users@ovirt.org">users@ovirt.org</a><br>
> > > Subject: Re: [Users] Trusted Pools and CentOS 6 packages<br>
> > ><br>
> ><br>
> > > Hi,<br>
> > ><br>
> > > thank you for the feedback;<br>
> > > I've gone through the steps again, but obtained the exactly same<br>
> > problem:<br>
> > ><br>
> > > 1. I removed all of the previously installed packaged related to<br>
> OAT.<br>
> > ><br>
> > > 2. I followed the tutorial, until this command:<br>
> > ><br>
> > > bash provisioner.sh<br>
> > ><br>
> > > provisioner.sh: line 7: systemctl: command not found<br>
> > > ### ecStorage = NVRAM###<br>
> > > Performing TPM provisioning...FAILED<br>
> > > javax.xml.ws.WebServiceException: Failed to access the WSDL at:<br>
> > ><br>
> ><br>
> <a href="https://seoul:8443/HisPrivacyCAWebServices2/hisPrivacyCAWebService2Factor" target="_blank">https://seoul:8443/HisPrivacyCAWebServices2/hisPrivacyCAWebService2Factor</a><br>
> > > yService?wsdl. It failed with:<br>
> > > Connection refused.<br>
> > > at<br>
> > ><br>
> ><br>
> com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLP<br>
> > > arser.java:162)<br>
> > > at<br>
> > ><br>
> ><br>
> com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.j<br>
> > > ava:144)<br>
> > > at<br>
> > ><br>
> ><br>
> com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.jav<br>
> > > a:265)<br>
> > > at<br>
> > ><br>
> ><br>
> com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:228)<br>
> > > at<br>
> > ><br>
> ><br>
> com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:176)<br>
> > > at<br>
> > ><br>
> ><br>
> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.jav<br>
> > a:104<br>
> > > )<br>
> > > at javax.xml.ws.Service.<init>(Service.java:77)<br>
> > > at<br>
> > ><br>
> ><br>
> gov.niarl.his.webservices.hisprivacycawebservice2.server.HisPrivacyCAWe<br>
> > bSer<br>
> > ><br>
> ><br>
> vice2FactoryServiceService.<init>(HisPrivacyCAWebService2FactoryService<br>
> > Servi<br>
> > > ce.java:42)<br>
> > > at<br>
> > ><br>
> ><br>
> gov.niarl.his.webservices.hisPrivacyCAWebService2.client.HisPrivacyCAWe<br>
> > bSer<br>
> > ><br>
> ><br>
> vices2ClientInvoker.getHisPrivacyCAWebService2(HisPrivacyCAWebServices2Cli<br>
> > > entInvoker.java:32)<br>
> > > at<br>
> > ><br>
> ><br>
gov.niarl.his.privacyca.HisTpmProvisioner.main(HisTpmProvisioner.java:205)<br>
> > > Caused by: java.net.ConnectException: Connection refused<br>
> > > at java.net.PlainSocketImpl.socketConnect(Native Method)<br>
> > > at<br>
> > ><br>
> ><br>
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.jav<br>
> > a:339<br>
> > > )<br>
> > > at<br>
> > ><br>
> ><br>
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketI<br>
> > mpl.j<br>
> > > ava:200)<br>
> > > at<br>
> > ><br>
> ><br>
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)<br>
> > > at<br>
> > java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)<br>
> > > at java.net.Socket.connect(Socket.java:579)<br>
> > > at<br>
> > sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)<br>
> > > at<br>
> > ><br>
> > sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)<br>
> > > at sun.net.NetworkClient.doConnect(NetworkClient.java:180)<br>
> > > at<br>
> > sun.net.www.http.HttpClient.openServer(HttpClient.java:432)<br>
> > > at<br>
> > sun.net.www.http.HttpClient.openServer(HttpClient.java:527)<br>
> > > at<br>
> > ><br>
> sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275)<br>
> > > at<br>
> > > sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371)<br>
> > > at<br>
> > ><br>
> ><br>
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHt<br>
> > > tpClient(AbstractDelegateHttpsURLConnection.java:191)<br>
> > > at<br>
> > ><br>
> ><br>
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnec<br>
> > > tion.java:932)<br>
> > > at<br>
> > ><br>
> ><br>
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(A<br>
> > > bstractDelegateHttpsURLConnection.java:177)<br>
> > > at<br>
> > ><br>
> ><br>
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConn<br>
> > > ection.java:1300)<br>
> > > at<br>
> > ><br>
> ><br>
> sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsU<br>
> > > RLConnectionImpl.java:254)<br>
> > > at java.net.URL.openStream(URL.java:1037)<br>
> > > at<br>
> > ><br>
> ><br>
> com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.createReader(RuntimeWSD<br>
> > > LParser.java:804)<br>
> > > at<br>
> > ><br>
> ><br>
> com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(RuntimeWSDL<br>
> > > Parser.java:262)<br>
> > > at<br>
> > ><br>
> ><br>
> com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.j<br>
> > > ava:129)<br>
> > > ... 8 more<br>
> > > Failed to initialize the TPM, error 1<br>
> > > Performing HIS identity provisioning...FAILED<br>
> > > gov.niarl.his.privacyca.TpmModule$TpmModuleException:<br>
> > > TpmModule.getCredential returned nonzero error: 2()<br>
> > > at<br>
> > ><br>
> gov.niarl.his.privacyca.TpmModule.getCredential(TpmModule.java:594)<br>
> > > at<br>
> > ><br>
> ><br>
><br>
gov.niarl.his.privacyca.HisIdentityProvisioner.main(HisIdentityProvisioner.j<br>
> > ava:<br>
> > > 217)<br>
> > > Failed to receive AIC from Privacy CA, error 1<br>
> > > Registering identity with server...FAILED<br>
> > > java.io.FileNotFoundException: /usr/share/oat-client/aik.cer (No<br>
> such file<br>
> > or<br>
> > > directory)<br>
> > > at java.io.FileInputStream.open(Native Method)<br>
> > > at<br>
> java.io.FileInputStream.<init>(FileInputStream.java:146)<br>
> > > at<br>
> java.io.FileInputStream.<init>(FileInputStream.java:101)<br>
> > > at<br>
> > gov.niarl.his.privacyca.TpmUtils.certFromFile(TpmUtils.java:612)<br>
> > > at<br>
> > ><br>
> ><br>
> ><br>
><br>
gov.niarl.his.privacyca.HisRegisterIdentity.main(HisRegisterIdentity.java:9<br>
> > 9<br>
> > )<br>
> > > Failed to register identity with appraiser, error 1<br>
> > ><br>
> ><br>
> > > Should I have updated anything else?<br>
> > ><br>
> > > cheers,<br>
> > > /Nicolae.<br>
> > ><br>
> > ><br>
> > ><br>
> > > On 1 November 2013 10:14, Wei, Gang <<a href="mailto:gang.wei@intel.com">gang.wei@intel.com</a>> wrote:<br>
> > ><br>
> > ><br>
> > > This is indeed an issue caused by the incompatibility<br>
> between<br>
> > OAT<br>
> > tpm<br>
> > > access<br>
> > > code & tpm-tools(tpm_takeownership -z). It has already been<br>
> > fixed.<br>
> > > Please<br>
> > > follow below wiki and try again.<br>
> > ><br>
> ><br>
> <a href="https://github.com/OpenAttestation/OpenAttestation/wiki/OAT-for-RHEL-" target="_blank">https://github.com/OpenAttestation/OpenAttestation/wiki/OAT-for-RHEL-</a><br>
> > > Recipe.<br>
> > ><br>
> > > Thanks<br>
> > > Jimmy<br>
> > ><br>
> > > Nicolae Paladi wrote on 2013-10-28:<br>
> > ><br>
> > > > Hi, I've followed the recipe<br>
> > > ><br>
> > ><br>
> ><br>
> (<a href="https://github.com/OpenAttestation/OpenAttestation/wiki/OAT-for-RHEL-Rec" target="_blank">https://github.com/OpenAttestation/OpenAttestation/wiki/OAT-for-RHEL-Rec</a><br>
> > ><br>
> > > > i pe) but didn't get it to run yet; I think a step is<br>
> missing --<br>
> > the AIK<br>
> > ><br>
> > > > is not available is /usr/share/oat-client (it was not<br>
> available in<br>
> > > > /var/lig/oat-appraiser/ClientFiles either); when I try to<br>
> run<br>
> > > > provisioner.sh, I get the following: provisioner.sh: line<br>
> 7:<br>
> > systemctl:<br>
> > > > command not found ### ecStorage = NVRAM### Performing<br>
> > TPM<br>
> > > > provisioning...710 DONE Successfully initialized TPM<br>
> > Performing<br>
> > HIS<br>
> > > > identity provisioning...FAILED<br>
> > java.util.NoSuchElementException<br>
> > > > at<br>
> > > java.util.StringTokenizer.nextToken(StringTokenizer.java:349)<br>
> > > > at<br>
> > > ><br>
> > ><br>
> ><br>
> gov.niarl.his.privacyca.TpmModule.executeVer2Command(TpmModule.java:21<br>
> > > > 5)<br>
> > > > at<br>
> > > ><br>
> > ><br>
> ><br>
> gov.niarl.his.privacyca.TpmModule.collateIdentityRequest(TpmModule.java:29<br>
> > > > 2)<br>
> > > > at<br>
> > > ><br>
> ><br>
> gov.niarl.his.privacyca.HisIdentityProvisioner.main(HisIdentityProvisione<br>
> > ><br>
> > > > r.java: 225) Failed to receive AIC from Privacy CA, error<br>
> 1<br>
> > Registering<br>
> > ><br>
> > > > identity with server...FAILED<br>
> java.io.FileNotFoundException:<br>
> > > > /usr/share/oat-client/aik.cer (No such file or directory)<br>
> > > > at java.io.FileInputStream.open(Native Method)<br>
> > > > at<br>
> > java.io.FileInputStream.<init>(FileInputStream.java:137)<br>
> > > > at<br>
> > java.io.FileInputStream.<init>(FileInputStream.java:96)<br>
> > > > at<br>
> > ><br>
> gov.niarl.his.privacyca.TpmUtils.certFromFile(TpmUtils.java:612)<br>
> > > > at<br>
> > > ><br>
> > ><br>
> ><br>
><br>
gov.niarl.his.privacyca.HisRegisterIdentity.main(HisRegisterIdentity.java:9<br>
> > > 9<br>
> > > )<br>
> > > > Failed to register identity with appraiser, error 1<br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > > Thanks,<br>
> > > > /Nicolae<br>
> > > ><br>
> > > ><br>
> > > > On 27 October 2013 22:55, Nicolae Paladi<br>
> > <<a href="mailto:n.paladi@gmail.com">n.paladi@gmail.com</a>><br>
> > wrote:<br>
> > > ><br>
> > > ><br>
> > > > Awesome, thanks!<br>
> > > ><br>
> > > > I'll try this out in the morning<br>
> > > ><br>
> > > > /Nicolae<br>
> > > ><br>
> > > ><br>
> > > > On 27 October 2013 17:03, Wei, Gang<br>
> > <<a href="mailto:gang.wei@intel.com">gang.wei@intel.com</a>><br>
> > > wrote:<br>
> > > ><br>
> > > ><br>
> > > > Please refer to<br>
> > > ><br>
> > > ><br>
> > ><br>
> ><br>
> <a href="https://github.com/OpenAttestation/OpenAttestation/wiki/OAT-for-RHEL-" target="_blank">https://github.com/OpenAttestation/OpenAttestation/wiki/OAT-for-RHEL-</a><br>
> > > > Recipe.<br>
> > > ><br>
> > > > Jimmy<br>
> > ><br>
> > ><br>
> ><br>
> ><br>
> ><br>
<br>
</div></div></blockquote></div><br></div>