ssl and credential fix