Skip to content

AbigailBuccaneer/libgtop11dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libgtop11dotnet (aka PKCS11dotNetV2)

This repository contains the source code for the libgtop11dotnet library. It is a PKCS #11 module for Gemalto IDPrime .NET smart cards.

This repository was created by importing the SVN repository from smartcardservices.macosforge.org. That repository contains up to version 2.2.0.10 of the source code. Version 2.2.0.12 is available, but I've only been able to find it as a .tar.gz on an unofficial website. The code from that tarball is here as a single commit (tagged 2.2.0.12).

If you have any more information about reputable sources off this source code, please file an issue!

Building

This information is based on this invaluable guide:

sudo apt install git automake autoconf pkg-config zlib1g-dev libpcsclite1 libpcsclite-dev libboost-all-dev 
git clone https://github.com/AbigailBuccaneer/libgtop11dotnet.git
cd libgtop11dotnet
./autogen.sh
./configure --enable-system-boost
make
sudo make install

Using

sudo apt install opensc-tool
# list the contents of the card:
pkcs11-tool --module=/usr/local/lib/libgtop11dotnet.so -O
# view the contents of an x509 certificate on the card
pkcs11-tool --module=/usr/local/lib/libgtop11dotnet.so -y cert -r \
  --id ${certificate_ID_from_previous_command} | openssl x509 -inform der -text -noout

License

This source code is available under the GNU Lesser General Public License. See the file LGPL-2.1 for more information. The source code contains the notice:

PKCS#11 library for .Net smart cards
Copyright (C) 2007-2009 Gemalto <support@gemalto.com>

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA