[ 
http://jira.codehaus.org/browse/MNG-2825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bruno Ranschaert closed MNG-2825.
---------------------------------

       Resolution: Incomplete
    Fix Version/s: 2.0.x

The reason for the error is that the SSL certificate does not contain the 
correct hostname, so the verification of the certificate fails. So this error  
has nothing to do with the port number (and put me on the wrong track). I came 
to this conclusion after doing a test with a socket forwarder which forwarded 
the 443 port to the 1234 port. The result was the same so it had nothing to do 
with the url.

Solution: correct the server certificate. 

Note: Maybe it would be better for the http wagon to issue a warning iso a 
plain error message. 

> LightWeightHttpWagon cannot handle https when port is explicitly specified.
> ---------------------------------------------------------------------------
>
>                 Key: MNG-2825
>                 URL: http://jira.codehaus.org/browse/MNG-2825
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.4
>         Environment: Windows XP, jdk 1.5.0_10
>            Reporter: Bruno Ranschaert
>             Fix For: 2.0.x
>
>
> When a repository is specified with https and a port number like this:
> <repository>
>             <id>Central-2</id>
>             <url>https://<my server name>:1234/maven2</url>            
> </repository>
> The build process raises an error
> Caused by: java.io.IOException: HTTPS hostname wrong:  should be <my server 
> name>
>         at 
> sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(HttpsClient.java:490)
>         at 
> sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:415)
>         ......
> The port number (1234) is not accepted.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to