commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NET-605) FTPSClient forces IP in SubjectAlternativeNames field for server certificate validation instead of hostname
Date Wed, 01 Mar 2017 13:24:45 GMT

    [ https://issues.apache.org/jira/browse/NET-605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15890152#comment-15890152
] 

Sebb commented on NET-605:
--------------------------

Works OK for me using NET trunk code, which is basically the same as 3.6 at present.
Have you tried using 3.6?

> FTPSClient forces IP in SubjectAlternativeNames field for server certificate validation
instead of hostname
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: NET-605
>                 URL: https://issues.apache.org/jira/browse/NET-605
>             Project: Commons Net
>          Issue Type: Bug
>          Components: FTP
>    Affects Versions: 3.5
>            Reporter: Adam Lynam
>
> We have an FTP Server with a signed certificate, with both CN and SAN DNS entries set
to the respective hostname of the machine.
> When attempting to connect using FTPSClient, we get java.security.cert.CertificateException:
No subject alternative names matching IP address x.x.x.x found. The FTPSClient appears to
resolve the IP address and pass that through the SSLSocket where it eventually raises the
exception.
> While we initially encountered the error against our internal FTP server, we have confirmed
the same issue against a public FTP server. ftps://demo:password@test.rebex.net.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message