Fixed SSL cert issues & errors, other cleanup