https://www.amazon.com/Demystifying-Cryptography-OpenSSL-3-0-techniques/dp/1800560346
It's really a good book :) And the last part is all about a mini-ca for your homelab !
However, don't use the ED448/ED25519 algorithm based certificates for TLS as mentioned in the example... They are still not supported by any browser !
If you can support the author, please do ! If you're on a budget, it's really easy to find in the piracy corner.