Skip to content

Commit

Permalink
Suggest using --servercert when certificate validation fails
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Sep 7, 2016
1 parent 6468a77 commit 90cbaab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.c
Expand Up @@ -1718,6 +1718,9 @@ static int validate_peer_cert(void *_vpninfo, const char *reason)
fprintf(stderr, _("\nCertificate from VPN server \"%s\" failed verification.\n"
"Reason: %s\n"), vpninfo->hostname, reason);

fprintf(stderr, _("To trust this server in future, perhaps add this to your command line:\n"));
fprintf(stderr, _(" --servercert %s\n"), fingerprint);

if (non_inter)
return -EINVAL;

Expand Down

0 comments on commit 90cbaab

Please sign in to comment.