Skip to content

Instantly share code, notes, and snippets.

@dmitryd
Created April 24, 2015 11:44
Show Gist options
  • Save dmitryd/7907bd6e084ccce1bac9 to your computer and use it in GitHub Desktop.
Save dmitryd/7907bd6e084ccce1bac9 to your computer and use it in GitHub Desktop.
TYPO3 Solr: index sites with a self-signed certificate
diff --git a/www/typo3conf/ext/solr/Classes/IndexQueue/PageIndexerRequest.php b/www/typo3conf/ext/solr/Classes/IndexQueue/PageIndexerRequest.php
index b34aee4..ca3247f 100644
--- a/www/typo3conf/ext/solr/Classes/IndexQueue/PageIndexerRequest.php
+++ b/www/typo3conf/ext/solr/Classes/IndexQueue/PageIndexerRequest.php
@@ -138,7 +138,11 @@ class Tx_Solr_IndexQueue_PageIndexerRequest {
'http' => array(
'header' => implode(CRLF, $headers),
'timeout' => $this->timeout
- )
+ ),
+ 'ssl' =>array(
+ 'verify_peer' => FALSE,
+ 'verify_peer_name' => FALSE,
+ ),
));
$rawResponse = file_get_contents($url, FALSE, $context);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment