Solr 8.8.1
Drupal 9.1.5
Search API 8.x-1.19
Search API Solr 4.1.1-solr-8.x-0
Connector Standard

I followed https://solr.apache.org/guide/8_6/enabling-ssl.html . Testing via the web interface, https://MY_IP:8983 connects to the solr server.
My solr search works fine when ssl isn't enabled. When ssl is enabled and I change the HTTP protocol to https via the Search API Solr UI, my Drupal site can't connect to the solr.

Comments

stevieegee created an issue. See original summary.

mkalkbrenner’s picture

Category: Bug report » Support request

Check your log files for error messages

mkalkbrenner’s picture

Any update here?

mkalkbrenner’s picture

Status: Active » Closed (cannot reproduce)

No Feedback

tiratore70’s picture

StatusFileSize
new170.78 KB

Hello,

I have the seem problem.

I working in on local machine and all is ok if I work in http, but I need to work in https.

I have configurated solr by this guide https://solr.apache.org/guide/6_6/enabling-ssl.html

After I have restarted solr e now if I try

nbma01775:solr marco$ openssl s_client -connect localhost:8983
CONNECTED(00000005)
depth=0 C = Country, ST = State, L = Location, O = Organization, OU = Organizational Unit, CN = localhost
verify error:num=18:self signed certificate
verify return:1
depth=0 C = Country, ST = State, L = Location, O = Organization, OU = Organizational Unit, CN = localhost
verify return:1
---
Certificate chain
0 s:/C=Country/ST=State/L=Location/O=Organization/OU=Organizational Unit/CN=localhost
i:/C=Country/ST=State/L=Location/O=Organization/OU=Organizational Unit/CN=localhost
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIDvTCCAqWgAwIBAgIEE1rfBTANBgkqhkiG9w0BAQsFADB+MRAwDgYDVQQGEwdD
b3VudHJ5MQ4wDAYDVQQIEwVTdGF0ZTERMA8GA1UEBxMITG9jYXRpb24xFTATBgNV
BAoTDE9yZ2FuaXphdGlvbjEcMBoGA1UECxMTT3JnYW5pemF0aW9uYWwgVW5pdDES
MBAGA1UEAxMJbG9jYWxob3N0MB4XDTIxMTIyMDEzNTQyMVoXDTQ5MDUwNjEzNTQy
MVowfjEQMA4GA1UEBhMHQ291bnRyeTEOMAwGA1UECBMFU3RhdGUxETAPBgNVBAcT
CExvY2F0aW9uMRUwEwYDVQQKEwxPcmdhbml6YXRpb24xHDAaBgNVBAsTE09yZ2Fu
aXphdGlvbmFsIFVuaXQxEjAQBgNVBAMTCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcN
AQEBBQADggEPADCCAQoCggEBAICvj7uksikYrbM75qzp7DBrNLx/4DkTjIHwTs4S
aqnJtefi/9+X9z6evCsE7CpDcMi/ggwJYNuZKJjcyycsLZttULnOZ4oudEdrXuaM
OnyO3MEnbXOLo9hIaO7U+pOCSBcUCbl2k/VdxaZkbx0xFOnc2CR3WJVJuC5js3Jy
OLqVuNOS6b22S1IOEgr8vHc70J12TXx8aHdMgskNjZB0UgrAZqKotrelI3aambMr
yajvBARV2nik2hfPnQg5lJeWe48sB5aWfSeMV/RzvIHbb/JJuxQHMrCCHFxzQs8t
rc0fe6+EoZvi+wsguw/AZg791SWtfKAJgulnZgKjX0ZjVocCAwEAAaNDMEEwIAYD
VR0RBBkwF4IJbG9jYWxob3N0hwTAqAEDhwR/AAABMB0GA1UdDgQWBBRVlYKmBKkO
UfDvM/ggvUxVBGd7AjANBgkqhkiG9w0BAQsFAAOCAQEAbTSPWBRU1off1RJrM7rm
uulfLsR+wyUMlbyhCixVM/+rnxJS1hWmj3H8fJOQwAim2HbixwUpTTx1wCYZOOIl
uB1CiLrMmbcpjZSa0y/gsdMOeHCipY3kvhWIHLpki8Gkpwa0qaN9qKLbgvsPvbQf
PpXwk+2ptlMdaakfZJH4Dk1uQsxN+8sPP0gi7r8Jd3jiIc1yeTL+Yis6RKpuB9Ao
BvN0B1ev18ii+vIJXWsptpkqXVmmUSugcnS6Idjk6UjIOacztAo4jkytZbUKFdpE
BRf+pP2QLWYarqk2POhb4+/boaSKIOl8d2f00JZ5AteVDmqtzVEVNzImFH8pH9BK
qg==
-----END CERTIFICATE-----
subject=/C=Country/ST=State/L=Location/O=Organization/OU=Organizational Unit/CN=localhost
issuer=/C=Country/ST=State/L=Location/O=Organization/OU=Organizational Unit/CN=localhost
---
No client certificate CA names sent
Server Temp Key: ECDH, P-256, 256 bits
---
SSL handshake has read 1501 bytes and written 378 bytes
---
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-SHA384
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
Protocol : TLSv1.2
Cipher : ECDHE-RSA-AES256-SHA384
Session-ID: 61C09861045F6FF602A27A43347B253D3810EF52C493AEED4AA8C6369EDBF801
Session-ID-ctx:
Master-Key: 67119FB913AD6101B8F228AFC08D735D2950954B3E368120752036032BF5C45C149E3E6FB402CE683C3F9BCBBB6004E1
Start Time: 1640011873
Timeout : 7200 (sec)
Verify return code: 18 (self signed certificate)
---
closed

All is Ok, If I try in configuration drupal admin (to see attach) I can't connect to solr and recive the message "The Solr server could not be reached. Further data is therefore unavailable."

Help me, please.
M.

tiratore70’s picture

StatusFileSize
new96.01 KB
mkalkbrenner’s picture

@tiratore70 you don't use Search API Solr 4.x. For Drupal 7 it is an entire different issue because the solarium library isn't used.