I don't have the code at hand, but I think it's better to just have a nginx server that only serves content if the browser has a specific certificate installed.
That way you generate a key pair, share the public key with anyone that you want to share the content with and that's it.
Downside is that some browsers don't handle the certificates properly (especially on phones)
gonzalohm · · focus · HN ↗
Downside is that some browsers don't handle the certificates properly (especially on phones)
[deleted] · · focus · HN ↗
[deleted]