Re:Chromium and Mozilla to enforce 1 year validity for TLS c...
by dylz on Tuesday June 30, 2020 @07:02AM
(#23688826)
The other problem is shipping a crypto library if the entire page and script is not served over HTTPS means that it's no longer useful, because the crypto library is compromised.
So you would need to ship a crypto library in JS, hehe :)
Self-signed certs probably does work, if you install the certificate root on your machine. It just not something you would advice end-users to do.