cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1652
Views
0
Helpful
0
Replies

anyconnect-vpnapi: connection attempt has failed.

cA7dEm0n
Level 1
Level 1

 

 Hi, 

 

I'm trying to use this VPN.

 

My steps are as follows.

 

/opt/cisco/anyconnect/bin/vpn connect abc.vpn.com.
Cisco AnyConnect Secure Mobility Client (version 4.8.00175) .
Copyright (c) 2004 - 2019 Cisco Systems, Inc.  All Rights Reserved.
  >> state: Disconnected
  >> state: Disconnected
  >> notice: Ready to connect.
  >> registered with local VPN subsystem.
  >> contacting host (abc.vpn.com) for login information...
  >> notice: Contacting abc.vpn.com.
Server Certificate Verification: Host name mismatch
Server Certificate Verification: CSSMERR_TP_NOT_TRUSTED
Server Certificate Verification: Host name mismatch
Server Certificate Verification: CSSMERR_TP_NOT_TRUSTED
Server Certificate Verification: Host name mismatch
Server Certificate Verification: CSSMERR_TP_NOT_TRUSTED
AnyConnect cannot verify server: 
    - Certificate does not match the server name.
    - Certificate is from an untrusted source.
Connecting to this server may result in a severe security compromise!
Most users do not connect to untrusted servers unless the reason for the error condition is known.
Connect Anyway? [y/n]: y
  >> Please enter your username.
Username: [abc] abc
abc
  >> Please enter your password.
Password:
  >> state: Connecting
  >> notice: Establishing VPN session...
  >> notice: The AnyConnect Downloader is performing update checks...
  >> notice: Checking for profile updates...
  >> notice: Checking for product updates...
Server Certificate Verification: Host name mismatch
Server Certificate Verification: CSSMERR_TP_NOT_TRUSTED
Server Certificate Verification: Host name mismatch
Server Certificate Verification: CSSMERR_TP_NOT_TRUSTED
Server Certificate Verification: Host name mismatch
Server Certificate Verification: CSSMERR_TP_NOT_TRUSTED
  >> notice: Checking for customization updates...
  >> notice: Performing any required updates...
  >> notice: The AnyConnect Downloader updates have been completed.
  >> state: Connecting
  >> notice: Establishing VPN session...
  >> notice: Establishing VPN - Initiating connection...

 

However, I couldn't connect to the client (anyconnect-vpnapiexamples/cli ).

 

~ cd examples/cli

~ make && make install

~ ./client connect abc.vpn.com abc abcCurrent State (4): Disconnected Current State (4): Disconnected Notice (Info): Ready to connect. Notice (Info): Ready to connect. Notice (Info): Contacting abc.vpn.com. Server Certificate Verification: Host name mismatch Server Certificate Verification: CSSMERR_TP_NOT_TRUSTED Server Certificate Verification: Host name mismatch Server Certificate Verification: CSSMERR_TP_NOT_TRUSTED Server Certificate Verification: Host name mismatch Server Certificate Verification: CSSMERR_TP_NOT_TRUSTED Notice (Warn): Connection attempt has failed. Current State (4): Disconnected


The /opt/cisco/anyconnect/bin/vpnagentd is the running status.

 

 

I have tried to use version 4.8 and version 4.9 of this VPN tool, but I have failed.

 

I want to know how to view the detailed error information.

 

If you can answer my question, I will be very grateful!

 

0 Replies 0