<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugzilla.globus.org/bugzilla/bugzilla.dtd">

<bugzilla version="3.2.3"
          urlbase="http://bugzilla.globus.org/bugzilla/"
          maintainer="bacon@mcs.anl.gov"
>

    <bug>
          <bug_id>6268</bug_id>
          
          <creation_ts>2008-07-29 02:01</creation_ts>
          <short_desc>cannot make the &quot;ServiceInvocation &quot; example work becese of authentication  error:</short_desc>
          <delta_ts>2008-07-30 10:24:57</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Java WS Core</product>
          <component>globus_wsrf_core</component>
          <version>4.0.2</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          
          
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Luo Keyue">lorkyo@163.com</reporter>
          <assigned_to name="Rachana Ananthakrishnan">ranantha@mcs.anl.gov</assigned_to>
          <cc>jwscore-dev@globus.org</cc>

      

      
          <long_desc isprivate="0">
            <who name="Luo Keyue">lorkyo@163.com</who>
            <bug_when>2008-07-29 02:01:46</bug_when>
            <thetext>I cannot make &quot;ServiceInvocation &quot; example work becese of authentication  error:

[Thread-0] ERROR wsif  - WSIF0002E：failed to  load WSDL from url ‘https://ibm.grid:8443/wsrf/services/CounterService?wsdl’
WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at &apos;https://192.168.11.137:8443/share/schema/core/samples/counter/counter_bindings.wsdl&apos;.: java.security.cert.CertificateException: No subject alternative names present: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present
	at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1591)
	at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:187)
.....................................
.......................
I use the CA bundled with the  Globus-Tookit to generate container certificate, its DN is : O=Grid, OU=GlobusTest, OU=simpleCA-gaobb.lreis, CN=ibm.grid.  ibm.grid  is my host name(I set this in the NetWork Cofiguration of the Operating System and write it in to the /etc/hosts ) .I don&apos;t use the default name (O=Grid, OU=GlobusTest, OU=simpleCA-gaobb.lreis, CN=host/ibm.grid)generated by the simple CA because the java cog don&apos;t think the &quot;host/ibm.grid&quot;  and &quot;ibm.grid&quot; refers to the same  subject, and it cause errors.  I use the browser(firefox) to type ‘https://ibm.grid:8443/wsrf/services/CounterService?wsdl&apos;,I can get the WSDL, but when I use ‘https://192.168.11.137:8443/wsrf/services/CounterService?wsdl&apos;,the browser will give a warning:
You have attemped to establish a connection with &quot;192.168.11.137&quot;. However,the security certificate presented belonged to&quot;ibm.grid&quot;. It is possible,though unlikely, that some one may be trying to intercept your communication with this web site.... 
 
So it seems that the  reason for my error is that the subject name in the certificate is &quot;ibm .grid&quot;, but the java code  use IP(the IP is retrived from the WSDL of the web serveice) to acess the Webservice. So it need a alternative name, But how can I add a alternative name into  the certifacation with he Simple CA of GlobusToolkit?  Besides adding a alternative name into my certificate, are there other ways to solve this problem? How to make java cog recognize the name and IP at the same time?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Luo Keyue">lorkyo@163.com</who>
            <bug_when>2008-07-29 02:22:51</bug_when>
            <thetext>By the way, I can get the JobSubmission example done. And I&apos;m using GlobusToolkit4.0.2</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Rachana Ananthakrishnan">ranantha@mcs.anl.gov</who>
            <bug_when>2008-07-30 10:24:57</bug_when>
            <thetext>This is an issue with configuration/certificate and has already been posted on the mailing list: http://www.globus.org/mail_archive/gt-user/2008/07/msg00269.html. Please follow up there.</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>