A script for building a CA chain.