Skip to content

Commit

Permalink
Revert "SSL: put back add the end of the server FQDN"
Browse files Browse the repository at this point in the history
This reverts commit 4283abb.
  • Loading branch information
Gonéri Le Bouder committed Feb 10, 2012
1 parent 4283abb commit 42ee703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/FusionInventory/Agent/Network.pm
Expand Up @@ -365,7 +365,7 @@ sub setSslRemoteHost {
$re =~ s/:\d+//;
# Accept SSL cert will hostname with wild-card
# http://forge.fusioninventory.org/issues/542
$re =~ s/^([^\.]+)/($1|\\*).$2/;
$re =~ s/^([^\.]+)/($1|\\*)/;
# protect some characters, $re will be evaluated as a regex
$re =~ s/([\-\.])/\\$1/g;
$ua->default_header('If-SSL-Cert-Subject' => '/CN='.$re.'($|\/)');
Expand Down

0 comments on commit 42ee703

Please sign in to comment.