ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zmaj <mungopa...@gmx.de>
Subject Problem with host name over https
Date Thu, 09 Aug 2007 15:48:29 GMT

Hello,
 i have a ivy settings task using credentials to resolve the artifacts over
a "https - repository".
e.g.

<ivy:settings file="./ivysettings.xml">
     <credentials host="https://xxx-x.com/repository/ivyrepo"
realm="xxx-x.com"                                                                        
                                                                                         
                                    
username="my.name@mycompany.com" passwd="myPassword" />	 
</ivy:settings> 

when i try to retrieve the artifact i get something like the following
output after the text. I think it has something to do with the servers
certificate but dont know how to provide the information needed.
What does "unable to find valid certification path to requested target" mean
here ?
or is there something diffrent wrong with my task ?

thank you 
ivan

[ivy:retrieve] 		module not found: [ struts | struts | 1.2.9 ]
[ivy:retrieve] 	==== shared: tried
[ivy:retrieve] 	 
https://xxx-x.com/repository/ivyrepo/struts/struts/1.2.9/struts-ivy.xml
[ivy:retrieve] 	  -- artifact [ struts | struts | 1.2.9 ]/struts.jar[jar]:
[ivy:retrieve] 	 
https://xxx-x.com/repository/ivyrepo/struts/struts/1.2.9/struts-1.2.9.jar
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 		::          UNRESOLVED DEPENDENCIES         ::
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 		:: [ struts | struts | 1.2.9 ]: not found
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 
[ivy:retrieve] :::: ERRORS
[ivy:retrieve] 	Server access Error:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
url=https://xxx-x.com/repository/ivyrepo/struts/struts/1.2.9/struts-ivy.xml
[ivy:retrieve] 	Server access Error:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
url=https://xxx-x.com/repository/ivyrepo/struts/struts/1.2.9/struts-1.2.9.jar
[ivy:retrieve] 


One day later : 

After adding the servers certificate to my JDK/jre/lib/security/cacerts
using keytool
(keytool -import -file myCertificate.cer -alias MyCertificate -keystore
/homeToJDK/jre/lib/security/cacerts)
the https certificate error above is gone :). But there is another thing
driving me crazy right now because insted of the certificate error i get :

[ivy:retrieve] :::: ERRORS
[ivy:retrieve] 	Server access Error: HTTPS hostname wrong:  should be
<xxx-v.de>
url=https://xxx-v.de/pathMYREPO/MYREPO/struts/struts/1.2.9/struts-ivy.xml
[ivy:retrieve] 	Server access Error: HTTPS hostname wrong:  should be
<xxx-v.de>
url=https://xxx-v.de/pathMYREPO/MYREPO/struts/struts/1.2.9/struts-1.2.9.jar


my url resolver and credentials look like this...

build.xml:

<setproxy proxyhost="S010I005" proxypassword=""
	proxyuser="" proxyport="5865" />
	<ivy:settings file="./ivysettings.xml">
	  <credentials host="xxx-v.de" realm="Subversion Repository" 
username="myname" passwd="mypass" />	 
	</ivy:settings> 


and the resolver in ivysettings.xml:

<settings defaultResolver="xxxde"  />
  <property name="ivy.shared.default.root"            
value="https://xxx-v.de/pathMYREPO/MYREPO/" override="false"/>
  <property name="ivy.shared.default.ivy.pattern"     
value="[organisation]/[module]/[revision]/[module]-ivy.xml"
override="false"/>
  <property name="ivy.shared.default.artifact.pattern"
value="[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"
override="false"/>
  <resolvers>    
    <url name="xxxde" m2compatible="true">
      <ivy
pattern="${ivy.shared.default.root}/${ivy.shared.default.ivy.pattern}" />
      <artifact
pattern="${ivy.shared.default.root}/${ivy.shared.default.artifact.pattern}"
/>  
    </url> 
....


aarrghh i dont get it . What is meant by HTTPS hostname wrong ??
Any ideas would be great 
thanks
Ivan
-- 
View this message in context: http://www.nabble.com/Problem-with-host-name-over-https-tf4236534.html#a12053693
Sent from the ivy-user mailing list archive at Nabble.com.


Mime
View raw message