Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

AnyConnect Mac OS X client certificate authentication

Hey guys, I'm trying to configure AnyConnect client on my Max OS X (version 10.6.4). I'm using certificates (issued by my Enterprise Root CA running AD Certificate Services) to authenticate my clients. However, when I try to connect to the VPN, I get "Certificate Validation Failure".

What I've done is exported my root certificate and user certificate from my Windows machine (which is able to authenticate successfully) and imported those certificates onto my Mac. The root certificate shows up as "Trusted" and the user certificate status reads "This certificate is valid". Both are being stored in my "login" keychain.

That's about it. Everything looks to be in order, so not sure what the problem is. I tried installing the certificates in the "System" keychain, but that fails (either nothing will happen, or I'll get an error message about insufficient access). This happens even after "unlocking" the System keychain.

Any thoughts?

9 REPLIES

Re: AnyConnect Mac OS X client certificate authentication

1. Could you try to generate a CSR on Mac client and then use it to get a valid certificate from your CA server?

2. If you are using Safari, you might check the following link. You can capture the packet on Mac client to see if it sends the cert to ASA or not.

http://support.apple.com/kb/HT1679

New Member

Re: AnyConnect Mac OS X client certificate authentication

Thanks, I'm pretty sure the certificate is valid (The message in Keychain is "This certificate is valid"). I'm not using a web browser, I'm using the AnyConnect client - that's where I get my "Certificate Validation Error" message. I've attached some screenshots.

Re: AnyConnect Mac OS X client certificate authentication

I did not export/import a cert from win pc to mac and am not sure if it could work.

So, first, I would like to suggest you to generate a CSR on mac and then use it to get a cert for mac.

If you still get the same issue, it could be anyconnect issue.

You can check the log at "/var/log/system.log" to see if you could find anything.

The issue might be caused by anyconnect not being able to access cert store.


Cisco Employee

Re: AnyConnect Mac OS X client certificate authentication

Hi Shaun,

as my colleague indicated, /var/log/system.log should hopefully give some indication as to what's wrong.

Now just to be sure: you did import the private key as well, right? I see a  private key present in the screenshot, just want to make sure it is one  that you imported along with the cert, not a key that just happens to  have the same name but is a leftover from another test.

In other  words, if you click Certificates in the Category pane in Keychain  Access, and then click the cert, does it show the private key as linked  to this cert?

As a possible workaround: if you have  Firefox installed then import the cert in  FF (Preferences -> Advanced -> Encryption -> View certificates  -> Import). You may have to remove the cert from the keychain to make this work.

A third option is to put the certificates and key in  in ~/.cisco/certificates (the issuer cert in subdirectory /ca, the client cert in /client, the private key in /client/private). CA cert and client cert need to have .pem extention, private key needs to have same filename as client cert but with .key instead of .pem. All 3 need to be in PEM format.

Definitely don't use the system keychain, anyconnect only looks in the login keychain (and the FF store, and the PEM file store).

hth

Herbert

New Member

AnyConnect Mac OS X client certificate authentication

I am seeing the same issue, if you edit the .anyconnect file and delete the line containing the client certificate it will then work.  I have an open case for a few months now that has not been resolved.  The above workaround will at least allow you to connect.

AnyConnect Mac OS X client certificate authentication

I have exactly the same issue. Can you tell us bug ID that relates to your case?

Cisco Employee

AnyConnect Mac OS X client certificate authentication

CSCts80367    AnyConnect 3.0 for Mac gets "Certificate Validation Failure" w/ ASA 8.4

resolved in 8.4(3)

hth

Herbert

AnyConnect Mac OS X client certificate authentication

Thanks a lot Herbert,

It seems that there is still an issue with linux machines, 120 sec window doesn't help. The only way to connect again is to delete ~/.anyconnect file or at least remove the line containing the client certificate from it. Any idea?

New Member

Re: AnyConnect Mac OS X client certificate authentication

It is working for me on 8.4(3).

>>> "gabriel.skupien.ccig" 2/7/2012 1:51 AM >>>

Home ( https://supportforums.cisco.com/index.jspa )

Re: AnyConnect Mac OS X client certificate authentication

created by Gabriel Skupien ( https://supportforums.cisco.com/people/gabriel.skupien.ccig ) in VPN - View the full discussion ( https://supportforums.cisco.com/message/3554035#3554035 )

Thanks a lot Herbert,

It seems that there is still an issue with linux machines, 120 sec window doesn't help. The only way to connect again is to delete ~/.anyconnect file or at least remove the line containing the client certificate from it. Any idea?

Reply to this message by going to Home ( https://supportforums.cisco.com/message/3554035#3554035 )

Start a new discussion in VPN at Home ( https://supportforums.cisco.com/choose-container!input.jspa?contentType=1&containerType=14&container=2023 )

34718
Views
5
Helpful
9
Replies
CreatePlease to create content