Fixed handling of ca cert file