Fix multi-level array encoding issue.
Add CA lists for ssl.