I'm new to web programming and am trying to develop a PWA.
I have the basics worked out on my development machine but am having trouble moving to ssl that PWA's require. I have 2 problems that may be simple but I have not been able to find the answer.
First the Rest server is automatically registered on the development machine but when I move it to the production machine I get a registration issue. How do you register a REST server?
Second, this will be an in house app. The client app is on an old domain I have at Dreamhost. The REST server is on a Windows PC connected to a NAS running MariaDB. So the Rest server is not on a Web server just a plain Windows machine. I have been able to forward the port through the router to the REST server, and it all worked through plain http, though I constantly get warnings about it not being safe :). How can I set up the windows machine to accept https? The data will be accessed by our tech's in the field, this is not a public app.
I am happy to read any doc's but don't know where to start. Any help would be appreciated.
You have to reserve the URL your server will listen, in the computer it will run. Here is information about it and how to do it: Http Server | TMS Sparkle documentation
This is not possible. HTTPS implies a certificate issued to a domain. Your server needs to run in a computer with a public domain, or in other words, your server needs to be accessed through a public domain, so a certificate can be issued and verified to that domain.
The thing is, certificates are issued by a 3rd party, which has the authority to issue (and sign) them.
For those 3rd parties to issue the certificate, you have to prove to them that you own/control the domain you are asking a certificate for. So, they need to be able to reach your domain and access information that only the domain owner could provide.