OK, I tried and it tells me that the TLD is invalid of course:

So, I could declare a domain with a known valid TLD, but knowing I will not register it at a registrar, I'll have to choose one which is not already registered to avoid conflict... And nothing guarantee me that it will stay available.
Do you have a solution for this? Or maybe I should better generate a self-signed certificate, don't know...