Read certificate chain from environment variable