I am trying to use a USB Token on Ubuntu to access a VPN. This access has to be done by using openconnect, with the certificate's URI being used in the connection string.
Here's the issue, though: I can't figure out how to get my certificate's URI.
I have been able to make Ubuntu recognize the token, and by running the command below I can get its URI.
$ modutil -dbdir sql:.pki/nssdb/ -list
What I am missing is the next step: how can I get the URI of the certificate that's inside the token?
I know p11tool has a command --list-all-certs that lets users do just that, but for some reason I have yet to figure out, p11tool is not recognizing this token, so I am looking for an alternative.
EDIT: Token is now being recognized by p11tool. But when using the token's URI to get the certificate's URI, message "No matching objects found" is being presented.
Here's the current output of p11tool --list-tokens. URL and serial have been purposely removed.
Token 1:
URL: ##############
Label: Soluti
Type: Hardware token
Flags: RNG, Requires login
Manufacturer: SafeNet, Inc.
Model: eToken
Serial: ##############
Module: