Fixed to use certificate chain. Added example certificate chains.