How to create stacked certificates

CERT

Stacked cert should be in this order:

Server —>  intermediary —> root


references:

UPDATED