How to access https://localhost from other devices

Solution 1:

If you're accessing it within the same network you should be able to use https://hostname:portnumber.

Unless the application itself has SSL support, one option would be to simply use Nginx as a reverse proxy and use it to apply the cert. You can use a location block to specify where traffic caught by nginx should be pointed (e.g. nginx is configured to listen on port 443, you reverse proxy it to localhost:9010 where the asp.net app is listening on 9010) and the simple SSL parameters to configure it to apply a certificate/private key.