get server credential.

Signed-off-by: abbr <wenfred@gmail.com>