Hi, I've had a search through the community but ca...
# community-help
m
Hi, I've had a search through the community but can't find anything previous for the problem I am having. I have a setup working perfectly locally and on a test server and I'm now trying to prepare for a production environment. I have installed from the DEB package on Ubuntu, am using Laravel Scout, but when trying to set up SSL am getting a cURL error when indexing models:
Copy code
cURL error 60: SSL: no alternative certificate subject name matches target host name 'localhost' (see <https://curl.haxx.se/libcurl/c/libcurl-errors.html>) for <https://localhost/collections/blogs>
With this typsense-server.ini:
Copy code
; Typesense Configuration

[server]

api-address = 0.0.0.0
api-port = 443
data-dir = /var/lib/typesense
api-key = my-api-key
log-dir = /var/log/typesense
ssl-certificate = /etc/letsencrypt/live/my-domain.com/fullchain.pem
ssl-certificate-key = /etc/letsencrypt/live/my-domain.com/privkey.pem
enable-cors = true
Any pointers on what I'm missing would be really appreciated
j
Could you share the exact curl command that throws this error?
k
You can't use a local host domain with letsencrypt cert I think.
m
Haven't managed to track down the curl command yet, the exception is thrown in php-http/guzzle7-addapter package.
I did wonder if it was localhost domain with letsencrypt problem. Should I be using my main domain then as
TYPESENSE_HOST
in the .env and the SSL for that?
Or use a self signed certificate instead with localhost...?
k
For local host need to use only self signed cert. Or just run without https
m
Thanks 🙂