Added access to key and certificate from setting