3 ms·
> ... personal projects ... How to https://10.0.2.2 https://10.0.2.2? It's not straightforward. Just issue a self-signed certificate. How is this not straight
by vog 10y ago
> ... personal projects ... How to https://10.0.2.2 https://10.0.2.2? It's not straightforward.
Just issue a self-signed certificate. How is this not straight forward? All you need is a single, well-known OpenSSL command:
openssl req -x509 -newkey rsa:4096 -sha256 -nodes -keyout test.key -out test.crt -subj /CN=10.0.2.2 -days 3650
- sametmax 10y ago"Well known" is a bit of a stretch. Most dev don't know nothing about setuping SSL. Nothing. I'm not talking about new commers, students, interns, etc. No, no, no. I'ml talking about what's constitute the majority of the work force of IT. You are living in a bubble, ignoring most sites out there are not made by experts, but by people that knows a bit of PHP, HTML and CSS. As a Python dev on Linux that have to live in docker + lastJS fantasy environments, I understand why you think that, it's so tempting to ignore the reality when we are consedering that playing with new toys on HN FP is a way to relax. Except once a month I train professionals for as a side activity. People that have 20 years on as dev in multinationals, research centers, administrations, etc. And there is no way the command you list can be remotely considered "well known" by them. At the begining of the month, I just gave a Git training. 2 guys and a girl, working for years for a huge bank on the official website. They were still using CVS before arriving. I said CVS, not mercurial, bazaar, not even SVN. CVS. 2 of them never used the terminal of course (tortoise anyone ?), one never ever worked on a non windows machine in her life. Let that sink in.
- vog 10y ago> "Well known" is a bit of a stretch. With "well known" I meant that you can find it quickly on StackOverflow: http://stackoverflow.com/q/10175812 http://stackoverflow.com/q/10175812 And yes, I do think that researching and using this command is not too much to ask for - at least for people calling themselves "developers". Also, I'm pretty sure that the concepts behind HTTP+TLS are easier to learn than version control, or learning some new library or API you need for your next project. With "straight forward" I meant that it is a single command that works on any OS (given OpenSSL is installed), and not some complicated multi-step process involving third-party services etc.
- nothrabannosir 10y agoImporting that in an android emulator is far from easy, and even after you manage, for some reason it didn't work for service workers. The page loads fine but the service workers don't. I had to hack around it with a custom domain, let's encrypt, and then rebinding that domain to 10.0.2.2. It wasn't straightforward. Again: a price I'm happy to pay, but a price nonetheless.