You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1802,12 +1820,16 @@ C<timeout> — Request timeout in seconds (default is 60) If a socket open, read
1802
1820
1803
1821
=item*
1804
1822
1805
-
C<verify_SSL> — A boolean that indicates whether to validate the SSL certificate of an C<https> — connection (default is false)
1823
+
C<verify_SSL> — A boolean that indicates whether to validate the TLS/SSL certificate of an C<https> — connection (default is true). Changed from false to true in version 0.083.
1806
1824
1807
1825
=item*
1808
1826
1809
1827
C<SSL_options> — A hashref of C<SSL_*> — options to pass through to L<IO::Socket::SSL>
1810
1828
1829
+
=item*
1830
+
1831
+
C<$ENV{PERL_HTTP_TINY_SSL_INSECURE_BY_DEFAULT}> - Changes the default certificate verification behavior to not check server identity if set to 1. Only effective if C<verify_SSL> is not set. Added in version 0.083.
1832
+
1811
1833
=back
1812
1834
1813
1835
An accessor/mutator method exists for each attribute.
@@ -2052,19 +2074,19 @@ proxy
2052
2074
timeout
2053
2075
verify_SSL
2054
2076
2055
-
=head1SSL SUPPORT
2077
+
=head1TLS/SSL SUPPORT
2056
2078
2057
2079
Direct C<https> connections are supported only if L<IO::Socket::SSL> 1.56 or
2058
2080
greater and L<Net::SSLeay> 1.49 or greater are installed. An error will occur
2059
-
if new enough versions of these modules are not installed or if the SSL
2081
+
if new enough versions of these modules are not installed or if the TLS
2060
2082
encryption fails. You can also use C<HTTP::Tiny::can_ssl()> utility function
2061
2083
that returns boolean to see if the required modules are installed.
2062
2084
2063
2085
An C<https> connection may be made via an C<http> proxy that supports the CONNECT
2064
2086
command (i.e. RFC 2817). You may not proxy C<https> via a proxy that itself
2065
2087
requires C<https> to communicate.
2066
2088
2067
-
SSL provides two distinct capabilities:
2089
+
TLS/SSL provides two distinct capabilities:
2068
2090
2069
2091
=over4
2070
2092
@@ -2078,34 +2100,25 @@ Verification of server identity
2078
2100
2079
2101
=back
2080
2102
2081
-
B<By default, HTTP::Tiny does not verify server identity>.
2103
+
B<By default, HTTP::Tiny verifies server identity>.
2082
2104
2083
-
Server identity verification is controversial and potentially tricky because it
2084
-
depends on a (usually paid) third-party Certificate Authority (CA) trust model
2085
-
to validate a certificate as legitimate. This discriminates against servers
2086
-
with self-signed certificates or certificates signed by free, community-driven
2087
-
CA's such as L<CAcert.org|http://cacert.org>.
2105
+
This was changed in version 0.083 due to security concerns. The previous default
2106
+
behavior can be enabled by setting C<$ENV{PERL_HTTP_TINY_SSL_INSECURE_BY_DEFAULT}>
2107
+
to 1.
2088
2108
2089
-
By default, HTTP::Tiny does not make any assumptions about your trust model,
2090
-
threat level or risk tolerance. It just aims to give you an encrypted channel
2091
-
when you need one.
2092
-
2093
-
Setting the C<verify_SSL> attribute to a true value will make HTTP::Tiny verify
2094
-
that an SSL connection has a valid SSL certificate corresponding to the host
2095
-
name of the connection and that the SSL certificate has been verified by a CA.
2096
-
Assuming you trust the CA, this will protect against a L<man-in-the-middle
2097
-
attack|http://en.wikipedia.org/wiki/Man-in-the-middle_attack>. If you are
2098
-
concerned about security, you should enable this option.
2109
+
Verification is done by checking that that the TLS/SSL connection has a valid
2110
+
certificate corresponding to the host name of the connection and that the
2111
+
certificate has been verified by a CA. Assuming you trust the CA, this will
=forstopwords Alan Gardner Alessandro Ghedini A. Sinan Unur Brad Gilbert brian m. carlson Chris Nehren Weyl Claes Jakobsson Clinton Gormley Craig Berry David Golden Mitchell Dean Pearce Edward Zborowski Felipe Gasper Graham Knop Greg Kennedy James E Keenan Raspass Jeremy Mates Jess Robinson Karen Etheridge Lukas Eklund Martin J. Evans Martin-Louis Bright Matthew Horsfall Michael R. Davis Mike Doherty Nicolas Rochelemagne Olaf Alders Olivier Mengué Petr Písař sanjay-cpu Serguei Trouchelle Shoichi Kaji SkyMarshal Sören Kornetzki Steve Grazzini Syohei YOSHIDA Tatsuhiko Miyagawa Tom Hukins Tony Cook Xavier Guimard
2382
+
=forstopwords Alan Gardner Alessandro Ghedini A. Sinan Unur Brad Gilbert brian m. carlson Chris Nehren Weyl Claes Jakobsson Clinton Gormley Craig Berry David Golden Mitchell Dean Pearce Edward Zborowski Felipe Gasper Graham Knop Greg Kennedy James E Keenan Raspass Jeremy Mates Jess Robinson Karen Etheridge Lukas Eklund Martin J. Evans Martin-Louis Bright Matthew Horsfall Michael R. Davis Mike Doherty Nicolas Rochelemagne Olaf Alders Olivier Mengué Petr Písař sanjay-cpu Serguei Trouchelle Shoichi Kaji SkyMarshal Sören Kornetzki Steve Grazzini Stig Palmquist Syohei YOSHIDA Tatsuhiko Miyagawa Tom Hukins Tony Cook Xavier Guimard
0 commit comments