# \[The SSL connection could not be established, see inner exception.\] Mac os

**URL:** <https://forum.litium.com/t/the-ssl-connection-could-not-be-established-see-inner-exception-mac-os/3190>\
**Category:** Questions\
**Created:** [February 6, 2024, 5:49am UTC](https://forum.litium.com/t/the-ssl-connection-could-not-be-established-see-inner-exception-mac-os/3190 "2024-02-06T05:49:25Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Totte](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@Totte](https://forum.litium.com/u/Totte)\
**Post date:** [February 9, 2024, 5:46am UTC](https://forum.litium.com/t/the-ssl-connection-could-not-be-established-see-inner-exception-mac-os/3190/5 "2024-02-09T05:46:03Z")

</div>

Thank you Michaela I tried what you said, but I think I’ve finally found a way for me to install the apps.

So I had a problem where I got the error:  
`[The SSL connection could not be established, see inner exception.]`

But I could not see any error log messages either in the app, or the litium log, as I wrote in the first post.

What I could see in the Litium app was that the http client logical handler was making a request to the app, and that’s it.

What I tried now was that I changed the url  
From: [https://anysubdomain.localtest.me:10021](https://anysubdomain.localtest.me:10021)  
To: [https://localhost:10021](https://localhost:10021)

### Now I got a new error in BO

![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/d22fb05d8b6f198aa098627a4766a1ddd5c61695.png)

And in logs I now get an error:

```auto
System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'System.String'

```

It’s logging something else in the stacktrace which might be of interest:

```auto
System.Net.Http.HttpRequestException: Resource temporarily unavailable (yoursubdomain.localtest.me:5001)

```

Seems like a DNS issue.

According to this forum post the solution was to change the entry of the dns of the payment/shipment app to 192.168.65.254

> [@Problems installing direct payment app locally](https://forum.litium.com/t/problems-installing-direct-payment-app-locally/2941/14):
>
> Change all 192.168.65.2 to 192.168.65.254 in that case. This works if your nslookup returns 192.168.65.254 for your host.docker internal. Otherwise use the ip that nslookup returns for your host.docker.internal

I tried this a while back and it didn’t work, because as Niklas say you should try to do the following command:  
`nslookup http://litium.localtest.me 127.0.0.1`

And get back:

```auto
Server: 127.0.0.1
Address:	127.0.0.1#53

Non-authoritative answer:
http://litium.localtest.me	canonical name = host.docker.internal.
Name:	host.docker.internal
Address: 192.168.65.254

```

This did not work before, but now it did ¯|_(ツ)_/¯ could’ve been that I did not have my Docker desktop up to date but ¯|_(ツ)_/¯

The lookup is for the domain [localtest.me](http://localtest.me) so you can use any subdomain, it should not matter:

```auto
> nslookup http://wellthiscouldbeanysubdomain.localtest.me 127.0.0.1

Server: 127.0.0.1
Address:	127.0.0.1#53

Non-authoritative answer:
http://wellthiscouldbeanysubdomain.localtest.me	canonical name = host.docker.internal.
Name:	host.docker.internal
Address: 192.168.65.254

```

I changed back the DNS value to this address:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/952a7ada4e638b07ec71ec53b2c272fe10c8480d.png)

And Voila.  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/2acff8310a95cfcca76d82d2e3cf5f50c0ae6675.png)

Some of my dear friends also recommended me:

```auto
Creating a container with the port 53 fails with the error address already in use. As a workaround, deactivate network acceleration by adding "kernelForUDP": false, in the settings.json file located at ~/Library/Group Containers/group.com.docker/settings.json.

```

### Here is my docker-compose file in case this might be of help

```auto
version: '3'
services:
  dnsresolver:
    image: cytopia/bind:stable-0.28
    container_name: dnsresolver
    ports:
      - 53:53/tcp
      - 53:53/udp
    environment:
        - DNS_CNAME=*.localtest.me=host.docker.internal
        - DNS_FORWARDER=192.168.65.7
        - ALLOW_QUERY=any
    dns: 192.168.65.7
    restart:
        unless-stopped

  direct-payment:
    image: registry.litium.cloud/apps/direct-payment:1.3.0
    dns: 
    - 192.168.65.254
    restart: unless-stopped
    ports:
    - "10010:80"
    - "10011:443"
    environment:
    # Enable HTTPS binding
    - ASPNETCORE_URLS=https://+;http://+
    - ASPNETCORE_HTTPS_PORT=10011
    # Configuration for HTTPS inside the container, exported dotnet dev-certs with corresponding password
    - ASPNETCORE_Kestrel __Certificates__ Default__Password=SuperSecretPassword
    - ASPNETCORE_Kestrel __Certificates__ Default__Path=/https/localhost.pfx
    # Folder for the configuraiton, this is volume-mapped
    - CONFIG_PATH=/app_config
    # Folder where logfiles should be placed, this is volume-mapped
    - APP_LOG_PATH=/logs
    # Don't validate certificates
    - AppConfiguration__ValidateCertificate=false
    # Url to this app
    - AppMetadata__AppUrl=https://localhost:10021
    # Url to the litium installation
    - LitiumApi__ApiUrl=https://yourdomain.localtest.me:5001/

    volumes:
    - ./data/direct-payment/config:/app_config
    - ./data/direct-payment/data:/app_data
    - ./data/direct-payment/logs:/logs
    - ./data/direct-payment/DataProtection-Keys:/root/.aspnet/DataProtection-Keys
    - https_cert:/https:ro

  direct-shipment:
    image: registry.litium.cloud/apps/direct-shipment:1.2.0
    dns: 
    - 192.168.65.254
    restart: unless-stopped
    ports:
    - "10020:80"
    - "10021:443"
    environment:
    # Enable HTTPS binding
    - ASPNETCORE_URLS=https://+;http://+
    #- ASPNETCORE_URLS=https://+
    - ASPNETCORE_HTTPS_PORT=10021
    # Configuration for HTTPS inside the container, exported dotnet dev-certs with corresponding password
    - ASPNETCORE_Kestrel __Certificates__ Default__Password=SuperSecretPassword
    - ASPNETCORE_Kestrel __Certificates__ Default__Path=/https/localhost.pfx
    # Folder for the configuraiton, this is volume-mapped
    - CONFIG_PATH=/app_config
    # Folder where logfiles should be placed, this is volume-mapped
    - APP_LOG_PATH=/logs
    # Don't validate certificates
    - AppConfiguration__ValidateCertificate=false
    # Url to this app
    - AppMetadata__AppUrl=https://localhost:10021
    # Url to the litium installation
    - LitiumApi__ApiUrl=https://yourdomain.localtest.me:5001/

    volumes:
    - ./data/direct-shipment/config:/app_config
    - ./data/direct-shipment/data:/app_data
    - ./data/direct-shipment/logs:/logs
    - ./data/direct-shipment/DataProtection-Keys:/root/.aspnet/DataProtection-Keys
    - https_cert:/https:ro

volumes:
  https_cert:
    driver: local
    driver_opts:
      o: bind
      type: none
      device: ./data/https

```

**Docker desktop version:** v4.27.1  
**Litium version:** 8.11.6  
**OS:** Mac OS M2 chip

---

_[View the full topic](https://forum.litium.com/t/the-ssl-connection-could-not-be-established-see-inner-exception-mac-os/3190)._
