Fix issue when client sends single certificate