Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Option to disable VERIFYPEER and VERIFYHOST for DoH requests #184

Description

@shoulders

My setup

  • Windows 11 Pro
  • Xampp (php 8.2.12)
  • pfSense router acting as my DNS server
    • with standard DNS (port 53) and DoT (853) available
    • DoT is using self-signed certs
  • NetDNS2 v2.0.8

the issue

The following code relaxes the certificate rules for DoT but they do not work for DoH so I cannot test my local DoH server that uses self-signed cert or check DoH responses redirections.

$r->tls_context = [ 'verify_peer' => false, 'verify_peer_name' => false ];

feature request

can you add a method to relax the cURL certificate requirements.

// Disable SSL certificate verification (NOT recommended for production)
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // Skip verifying the peer's certificate
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); // Skip verifying the host name

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions