How to build a certificates chain of trust in Windows using `openssl`?

My previous manual: How do I install a self-signed certificate to localhost?