<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>verify_peer_name &#8211; Mario Chivale ♦ Personal Website</title>
	<atom:link href="https://www.mario.chivale.com/tag/verify_peer_name/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.mario.chivale.com</link>
	<description>Mario Chivale Personal Website ♦ IT • Informatyka • Computer Science • Elektronika • Electronics • Elektryka • Electricity</description>
	<lastBuildDate>Wed, 01 May 2024 09:39:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>How to disable certificate validation in Symfony Mailer</title>
		<link>https://www.mario.chivale.com/how-to-disable-certificate-validation-in-symfony-mailer/</link>
		
		<dc:creator><![CDATA[Tatsu]]></dc:creator>
		<pubDate>Wed, 01 May 2024 09:34:01 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[TIPS]]></category>
		<category><![CDATA[cerificate]]></category>
		<category><![CDATA[EsmtpTransportFactory]]></category>
		<category><![CDATA[EsmtpTransportFactory.php]]></category>
		<category><![CDATA[FILTER_VALIDATE_BOOLEAN]]></category>
		<category><![CDATA[Mailer]]></category>
		<category><![CDATA[peer]]></category>
		<category><![CDATA[self signed]]></category>
		<category><![CDATA[self signed certificate]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[tls]]></category>
		<category><![CDATA[transport]]></category>
		<category><![CDATA[verify]]></category>
		<category><![CDATA[verify_peer]]></category>
		<category><![CDATA[verify_peer_name]]></category>
		<guid isPermaLink="false">https://www.mario.chivale.com/?p=832</guid>

					<description><![CDATA[To disable certificate validation &#8220;verify_peer&#8221;, edit file: symfony/mailer/Transport/Smtp/EsmtpTransportFactory.php Search line: if (&#8221; !== $dsn-&#62;getOption(&#8216;verify_peer&#8217;) &#38;&#38; !filter_var($dsn-&#62;getOption(&#8216;verify_peer&#8217;, true), \FILTER_VALIDATE_BOOLEAN)) { and replace with this line or set true to false: if (&#8221; !== $dsn-&#62;getOption(&#8216;verify_peer&#8217;) &#38;&#38; !filter_var($dsn-&#62;getOption(&#8216;verify_peer&#8217;, false), \FILTER_VALIDATE_BOOLEAN)) { also if this line below are true, change to false: $streamOptions[&#8216;ssl&#8217;][&#8216;verify_peer&#8217;] = false; $streamOptions[&#8216;ssl&#8217;][&#8216;verify_peer_name&#8217;] = false;]]></description>
										<content:encoded><![CDATA[<p>To disable certificate validation &#8220;verify_peer&#8221;, edit file:<br />
symfony/mailer/Transport/Smtp/EsmtpTransportFactory.php</p>
<p>Search line:<br />
if (&#8221; !== $dsn-&gt;getOption(&#8216;verify_peer&#8217;) &amp;&amp; !filter_var($dsn-&gt;getOption(&#8216;verify_peer&#8217;, <strong>true</strong>), \FILTER_VALIDATE_BOOLEAN)) {</p>
<p>and replace with this line or set <strong>true</strong> to <strong>false</strong>:<br />
if (&#8221; !== $dsn-&gt;getOption(&#8216;verify_peer&#8217;) &amp;&amp; !filter_var($dsn-&gt;getOption(&#8216;verify_peer&#8217;, <strong>false</strong>), \FILTER_VALIDATE_BOOLEAN)) {</p>
<p>also if this line below are true, change to false:<br />
$streamOptions[&#8216;ssl&#8217;][&#8216;verify_peer&#8217;] = <strong>false</strong>;<br />
$streamOptions[&#8216;ssl&#8217;][&#8216;verify_peer_name&#8217;] = <strong>false</strong>;</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>PHPMailer Disable SMTP SSL Certificate Verification in PHP</title>
		<link>https://www.mario.chivale.com/phpmailer-disable-smtp-ssl-certificate-verification-in-php/</link>
					<comments>https://www.mario.chivale.com/phpmailer-disable-smtp-ssl-certificate-verification-in-php/#respond</comments>
		
		<dc:creator><![CDATA[Tatsu]]></dc:creator>
		<pubDate>Thu, 11 May 2023 07:38:57 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[allow_self_signed]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Mailer]]></category>
		<category><![CDATA[Options]]></category>
		<category><![CDATA[PHPMailer]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[SMTP SSL]]></category>
		<category><![CDATA[SMTPAutoTLS]]></category>
		<category><![CDATA[SMTPOptions]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[verify_peer]]></category>
		<category><![CDATA[verify_peer_name]]></category>
		<guid isPermaLink="false">https://www.mario.chivale.com/?p=515</guid>

					<description><![CDATA[How to disable checking of the mail serves certificate in PHPMailer code SMTP Options $mail-&#62;SMTPOptions = [ &#8216;ssl&#8217; =&#62; [ &#8216;verify_peer&#8217; =&#62; false, &#8216;verify_peer_name&#8217; =&#62; false, &#8216;allow_self_signed&#8217; =&#62; true, ] ]; If you have any questions, write your question bellow in the &#8220;Leave a Reply&#8221; form. Thanks! &#160; &#8212; Artificial Intelligence Comment &#8212; &#8226; Recently, [&#8230;]]]></description>
										<content:encoded><![CDATA[<h1 style="text-align: justify;">How to disable checking of the mail serves certificate in PHPMailer code SMTP Options</h1>
<p style="text-align: justify;">$mail-&gt;SMTPOptions = [<br />
&#8216;ssl&#8217; =&gt; [<br />
&#8216;verify_peer&#8217; =&gt; <span style="color: #ff0000;">false</span>,<br />
&#8216;verify_peer_name&#8217; =&gt; <span style="color: #ff0000;">false</span>,<br />
&#8216;allow_self_signed&#8217; =&gt; <span style="color: #ff0000;">true</span>,<br />
]<br />
];</p>
<div align="center"><strong>If you have any questions,<br />
write your question bellow in the &#8220;Leave a Reply&#8221; form.<br />
<em>Thanks!</em></strong></div>
<p>&nbsp;</p>
<div align="center"><a title="PayPal- Donate" href="https://www.paypal.com/donate/?hosted_button_id=5TA4H4TJHD4BJ" target="_blank" rel="noopener"><img decoding="async" title="PayPal - Donate" src="/img/paypal-donate.webp" alt="Paypal - Donate" /></a></div>
<div align="center"><strong>&#8212; Artificial Intelligence Comment &#8212;</strong></div>
<div align="center">&#8226;</div>
<p style="text-align: justify;">Recently, the popular open source email transfer client PHPMailer has implemented additional security measures to limit the risk of unauthorized emails being transmitted through their system. One of these measures is the ability to disable SMTP SSL certificate verification in PHP, which can be done by following the steps outlined in this article.</p>
<p style="text-align: justify;">SMTP Secure Sockets Layer (SSL) is an encryption protocol used for data transfer between two machines. It is widely used for communication between networks, including email transfer. With SSL enabled, PHPMailer can verify the authenticity of a secure link established between two computers, protecting users from potential exploits.</p>
<p style="text-align: justify;">However, there may be instances when users wish to disable this feature, either for convenience or to reduce network latency. For instance, if the user is not expecting a large volume of emails or is running a development environment, disabling SMTP SSL certificate verification may not be necessary.</p>
<p style="text-align: justify;">To disable SMTP SSL certificate verification in PHPMailer, users must edit the initialization of the PHPMailer class instance. The verification is enabled by default, but can be easily disabled by setting the “SMTPAutoTLS” parameter to “false”.</p>
<p style="text-align: justify;">Once this is done, the verification requirement will no longer be enforced when sending emails. This setting should not be used in production environments, as it can increase the risk of email spoofing. It is strongly recommended that users enable SSL verification if sending emails to any public address.</p>
<p style="text-align: justify;">In conclusion, PHPMailer has implemented a number of security measures to protect users from potential exploits while transferring emails. SSL certificate verification is one of these features, and can be easily disabled in the initialization of the PHPMailer class instance. However, this should not be done in production environments as it can reduce the level of security.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.mario.chivale.com/phpmailer-disable-smtp-ssl-certificate-verification-in-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
