{"id":2141,"date":"2019-12-10T20:18:33","date_gmt":"2019-12-11T02:18:33","guid":{"rendered":"http:\/\/blografia.net\/vicm3\/?p=2141"},"modified":"2019-12-12T08:50:00","modified_gmt":"2019-12-12T14:50:00","slug":"allow-wordpress-to-use-a-relay-smtp-with-self-signed-cert","status":"publish","type":"post","link":"https:\/\/blografia.net\/vicm3\/2019\/12\/allow-wordpress-to-use-a-relay-smtp-with-self-signed-cert\/","title":{"rendered":"Allow WordPress to use a relay smtp with self signed cert"},"content":{"rendered":"<pre>    271     \/**\r\n    272      * Options array passed to stream_context_create when connecting via SMTP.\r\n    273      * @var array\r\n    274      *\/\r\n    275     public $SMTPOptions = array(\r\n    276          'ssl' =&gt; array(\r\n    277         'verify_peer' =&gt; false,\r\n    278         'verify_peer_name' =&gt; false,\r\n    279         'allow_self_signed' =&gt; true\r\n    280                     )\r\n    281         );<\/pre>\n<p>Around line 271 on wp-includes\/class-phpmailer.php ,or better search for SMTPOptions<\/p>\n<p>Related with same <a href=\"https:\/\/blografia.net\/vicm3\/2016\/01\/bits-of-code-php-and-self-signed-cert-on-moodle\/\">conf for Moodle<\/a> as php now disables it.<\/p>\n<p>Also phpmailer is a very popular class for php apps, in the documentation page on the troubleshot category you can find my case of use <a href=\"https:\/\/github.com\/PHPMailer\/PHPMailer\/wiki\/Troubleshooting#updating-ca-certificates\">https:\/\/github.com\/PHPMailer\/PHPMailer\/wiki\/Troubleshooting#updating-ca-certificates<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>271 \/** 272 * Options array passed to stream_context_create when connecting via SMTP. 273 * @var array 274 *\/ 275 public $SMTPOptions = array( 276 &#8216;ssl&#8217; =&gt; array( 277 &#8216;verify_peer&#8217; =&gt; false, 278 &#8216;verify_peer_name&#8217; =&gt; false, 279 &#8216;allow_self_signed&#8217; =&gt; true &hellip; <a href=\"https:\/\/blografia.net\/vicm3\/2019\/12\/allow-wordpress-to-use-a-relay-smtp-with-self-signed-cert\/\">Sigue leyendo <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[5,3,10,8,6],"tags":[333,100,62,837,61],"class_list":["post-2141","post","type-post","status-publish","format-standard","hentry","category-debraye","category-general","category-planetalinux","category-sysadmin","category-trabajo","tag-hack","tag-linux","tag-php","tag-smtp","tag-wordpress"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1537,"url":"https:\/\/blografia.net\/vicm3\/2016\/01\/bits-of-code-php-and-self-signed-cert-on-moodle\/","url_meta":{"origin":2141,"position":0},"title":"Bits of code, php and self signed cert on Moodle","author":"vicm3","date":"22 enero, 2016","format":false,"excerpt":"And a hack, if you happen to have a Moodle 2.6.x with phpmailer old library and you had php5.6.x you may find if you use ssl\/tls to send mail that now php is strictier with self signed certificates, well there are good documentation on php.net about [1] and [2] but\u2026","rel":"","context":"En \u00abEducaci\u00f3n\u00bb","block_context":{"text":"Educaci\u00f3n","link":"https:\/\/blografia.net\/vicm3\/category\/educacion\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1670,"url":"https:\/\/blografia.net\/vicm3\/2016\/08\/php-y-certificados-firmados-por-uno-mismo-el-caso-de-moodle\/","url_meta":{"origin":2141,"position":1},"title":"PHP y certificados firmados por uno mismo el caso de Moodle","author":"vicm3","date":"29 agosto, 2016","format":false,"excerpt":"Ya lo puse en gran medida en ingles en enero de este a\u00f1o que actualizamos la mayor\u00eda de nuestros servidores a php > 5.6 y empezamos a tener problemas al mandar correo desde el mismo via SSL\/TLS entonces lo documento ac\u00e1 de nuevo pero en espa\u00f1ol, porque no se me\u2026","rel":"","context":"En \u00abEducaci\u00f3n\u00bb","block_context":{"text":"Educaci\u00f3n","link":"https:\/\/blografia.net\/vicm3\/category\/educacion\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":57,"url":"https:\/\/blografia.net\/vicm3\/2005\/02\/on_php_flags\/","url_meta":{"origin":2141,"position":2},"title":"On php flags","author":"vicm3","date":"15 febrero, 2005","format":false,"excerpt":"Well as this post was originally on english and i have two powerful reasons to no translate is lefted as in the original... apologies to the spanish readers: Posted: Mon Feb 14, 2005 1:48 pm Before i have complained about had to use register_globals & magic_quotes... as for we host\u2026","rel":"","context":"En \u00abGeneral\u00bb","block_context":{"text":"General","link":"https:\/\/blografia.net\/vicm3\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":216,"url":"https:\/\/blografia.net\/vicm3\/2006\/01\/he_visto_un_lindo_gatito\/","url_meta":{"origin":2141,"position":3},"title":"He visto un lindo gatito&#8230;","author":"vicm3","date":"19 enero, 2006","format":false,"excerpt":"Bueno en realidad resolvi un chinche problema que me estaba causando el subir fotos... resulta que yo bien quitado de la pena me copie un esqueleto de configuracion que por ahi incluia open_base_dir y lo use nomas por que en los ejemplos venia... error... open_basedir string Limit the files that\u2026","rel":"","context":"En \u00abSin categor\u00eda\u00bb","block_context":{"text":"Sin categor\u00eda","link":"https:\/\/blografia.net\/vicm3\/category\/sin-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":136,"url":"https:\/\/blografia.net\/vicm3\/2005\/09\/arqueologia_infiernetica\/","url_meta":{"origin":2141,"position":4},"title":"Arqueologia&#8230; infiernetica","author":"vicm3","date":"1 septiembre, 2005","format":false,"excerpt":"From malopezm@vmredipn.ipn.mx Tue Feb 25 12:47:46 CST 1997 Received: from VMREDIPN.IPN.MX by tochtli.uam.mx with SMTP (1.39.111.2\/16.2) id AA272736464; Tue, 25 Feb 1997 12:47:44 -0600 Date: Tue, 25 Feb 1997 12:47:44 -0600 Return-Path: <malopezm@vmredipn.ipn.mx> Received: from aca by VMREDIPN.IPN.MX (IBM VM SMTP V2R2) with TCP; Tue, 25 Feb 97 12:43:29 EST\u2026","rel":"","context":"En \u00abSin categor\u00eda\u00bb","block_context":{"text":"Sin categor\u00eda","link":"https:\/\/blografia.net\/vicm3\/category\/sin-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1068,"url":"https:\/\/blografia.net\/vicm3\/2013\/06\/legacy-code-everywhere\/","url_meta":{"origin":2141,"position":5},"title":"Legacy code everywhere","author":"vicm3","date":"19 junio, 2013","format":false,"excerpt":"From last weekend our blog lacobachab where not updating their feed, as I removed and updated wp-cache info, most probably I removed redundant entries on .htaccess, BUT looks like removed the correct ones and left the wrong ones, tip if you don't know if your .htaccess mod_rewrite rules are OK,\u2026","rel":"","context":"En \u00abDebraye\u00bb","block_context":{"text":"Debraye","link":"https:\/\/blografia.net\/vicm3\/category\/debraye\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/posts\/2141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/comments?post=2141"}],"version-history":[{"count":0,"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/posts\/2141\/revisions"}],"wp:attachment":[{"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/media?parent=2141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/categories?post=2141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/tags?post=2141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}