FTPs: wildcard SSL certificates

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
knyar
Junior Member
Junior Member
Posts: 2
Joined: 2006-12-23, 17:07 UTC

FTPs: wildcard SSL certificates

Post by *knyar »

Hi!

First of all, I would like to say thanks for implementing FTPs support in Total Commander - this really is a great and long-awaited feature.

The issue I would like to address is wildcard certificates. It is a common practice for a company owning a domain name, say, example.tld to purchase a certificate with CN equal to *.example.tld and to use this certificate for all hosts needing SSL support (both aaa.example.tld and bbb.example.tld will usually match such certificate).

As I can see, Total Commander shows "red lock" when a wildcard certificate is used. I have a certificate *.xxx.zzz.tld and Total Commander says the certificate is incorrect for both ftpserver.xxx.zzz.tld and xxx.zzz.tld (even though xxx.zzz.tld is not strictly matching *.xxx.zzz.tld wildcard, most of software usually considers such situation normal).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for your suggestion.

What error is shown when you click on the lock?
Author of Total Commander
https://www.ghisler.com
knyar
Junior Member
Junior Member
Posts: 2
Joined: 2006-12-23, 17:07 UTC

Post by *knyar »

The error is:
The presented server certificate seems to belong to a different server name!

Connected to: db.spirit.blahblah.tld
Validity: 2006-12-21 13:57:34 until 2008-12:20 13:57:34

Cert subject:
Common name: *.spirit.blahblah.tld

Cert issuer:
[skipped]
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for the info! It should be no problem to add this.
I have one more question: Does the cert for *.spirit.blahblah.tld also cover the domain spirit.blahblah.tld, or only the subdomains?
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Could you please try whether wildcard certificates work now, please?

What about my question about the subdomains?
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

BUMP
Anyone can confirm that it works with wildcard certificates now, please?
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

BUMP BUMP BUM BUMP

Anyone having a server with a wildcard certificate, please?
Author of Total Commander
https://www.ghisler.com
User avatar
franck8244
Power Member
Power Member
Posts: 703
Joined: 2003-03-06, 17:37 UTC
Location: Geneva...

Post by *franck8244 »

I have created a self-signed certificate :
*.toto.net -> accept it (always trust...) -> no more message : OK

then a connection to truename.toto.net -> no message : certificate is validated

(A self-signed certificate with an expired date can note be validated (no accept it button) )
TC#88260 -
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have created a self-signed certificate :
*.toto.net -> accept it (always trust...) -> no more message : OK

then a connection to truename.toto.net -> no message : certificate is validated
Great, thanks for testing it!
A self-signed certificate with an expired date can note be validated (no accept it button)
Yes, this is intentional. The same is true for invalid or unsigned certificates (see this thread).
Author of Total Commander
https://www.ghisler.com
Post Reply