Supports multiple certificates in CA chain.

The current CA code only supports a single certificate in the CA.pem file.  Many certificate authorities are in a chain, where you might have a Root CA and a Sub CA.  The Sub CA signs your certificate, but you need to trust the whole chain.