How to generate certificate chain for SSL authentication

Trying to authenticate api with SSL certs. They require a full cert chain (root, intermediate and leaf). I only know the basics of SSL so from what I understand leaf is what is installed on my server, root is from Clouflare themselves, and intermediate links the two. But I cannot find the intermediate certificates anywhere, so I cannot verify the full chain. This is how I'm trying to verify

❯ openssl verify -CAfile cloudflare-origin-ca-root.pem complete-chain.pem


Here my complete chain is just my leaf since I couldn't find the intermediate.

Can anyone give some guidance or point me where to look?
Was this page helpful?