Having just set up an SSL certificate with Let’s Encrypt on my server, I now want to validate an Android Digital Asset Link for my app. This works, but may well give problems in the future because of the use of the ‘.well-known’ folder.
Let’s Encrypt uses it for the ACME challenge and according to the instructions, I have set up an alias that now points to ‘/var/www/html/.well-known’. In other words, this is a shared location between multiple domains on my server.
Android demands that I place an assetlinks.json file also in the ‘.well-known’ folder. However, this should NOT be a shared file between different domains on my server.
Currently I have three domains on the server, but so far only one app for which I need the link validation. So currently I have no issue. However, in the future I will have to find a solution to use the link validation for multiple apps on multiple domains. How can this be done if I have Let’s Encrypt certificates for one or more domains?
Please note, I am not a server guru and my setup may well be suboptimal, I welcome advice on a different setup that may work better.