CM HTTPS SLL (CMHTTPS) - Resolving SSL Certificate Detection Issues

Resolving Issues When an SSL Certificate Cannot be Detected 

If the plugin does not locate the SSL, it will not work as expected. Usually, this is caused by the SSL being misconfigured.

The reason can be located if your website setup is defined properly for external visitors (in such case, you can see that external SSL Validators services are verifying your certificate properly).

However, if the plugin runs inside your environment, it will try to validate your certificate and connect internally with your website. So, there can be plenty of reasons that the internal connection doesn't work.  

Troubleshooting

Let your administrator check the following PHP code and test why this is returning the SSL error (replace the 'siteurl' on the first line with your URL address): 

 
<?php
$url = get_option( 'siteurl' );
$url = parse_url($url, PHP_URL_HOST);
$g = stream_context_create (array("ssl" => array("capture_peer_cert" => true)));
$r = stream_socket_client("ssl://" . $url . ":443", $errno, $errstr, 30, STREAM_CLIENT_CONNECT, $g);
$cont = stream_context_get_params($r);
$cert = $cont["options"]["ssl"]["peer_certificate"];

$detected = (!is_null($cert) AND is_resource($cert));
var_dump($detected);

?>


More information about the CM WordPress HTTPS SSL Pro WordPress  Plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center