regenerated documentation
This commit is contained in:
@@ -1,35 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>PC/SC Relay — vsmartcard 2017-01-16 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>PC/SC Relay — vsmartcard 2021-04-28 documentation</title>
|
||||
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../_static/bootswatch-3.3.4/flatly/bootstrap.min.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../_static/bootstrap-sphinx.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../',
|
||||
VERSION: '2017-01-16',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/js/jquery-1.11.0.min.js"></script>
|
||||
<script type="text/javascript" src="../_static/js/jquery-fix.js"></script>
|
||||
<script type="text/javascript" src="../_static/bootstrap-3.3.4/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../_static/graphviz.css" />
|
||||
<script id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
|
||||
<script src="../_static/jquery.js"></script>
|
||||
<script src="../_static/underscore.js"></script>
|
||||
<script src="../_static/doctools.js"></script>
|
||||
<script src="../_static/js/jquery-1.11.0.min.js"></script>
|
||||
<script src="../_static/js/jquery-fix.js"></script>
|
||||
<script src="../_static/bootstrap-3.3.7/js/bootstrap.min.js"></script>
|
||||
<script src="../_static/bootstrap-sphinx.js"></script>
|
||||
<link rel="shortcut icon" href="../_static/chip.ico"/>
|
||||
<link rel="top" title="vsmartcard 2017-01-16 documentation" href="../index.html" />
|
||||
<link rel="search" title="Search" href="../search.html" />
|
||||
<link rel="next" title="USB CCID Emulator" href="../ccid/README.html" />
|
||||
<link rel="prev" title="Tizen Smart Card Emulator" href="../TCardEmulator/README.html" />
|
||||
<meta charset='utf-8'>
|
||||
@@ -37,8 +25,7 @@
|
||||
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
</head><body>
|
||||
|
||||
<a href="https://github.com/frankmorgner/vsmartcard"
|
||||
class="visible-desktop hidden-xs"><img
|
||||
@@ -86,7 +73,7 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="../remote-reader/README.html">Remote Smart Card Reader</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../ACardEmulator/README.html">Android Smart Card Emulator</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../TCardEmulator/README.html">Tizen Smart Card Emulator</a></li>
|
||||
<li class="toctree-l1 current"><a class="current reference internal" href="">PC/SC Relay</a></li>
|
||||
<li class="toctree-l1 current"><a class="current reference internal" href="#">PC/SC Relay</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../ccid/README.html">USB CCID Emulator</a></li>
|
||||
</ul>
|
||||
<ul>
|
||||
@@ -127,11 +114,11 @@
|
||||
|
||||
|
||||
<li>
|
||||
<a href="../TCardEmulator/README.html" title="Previous Chapter: Tizen Smart Card Emulator"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm hidden-tablet">« Tizen Smart Card...</span>
|
||||
<a href="../TCardEmulator/README.html" title="Previous Chapter: Tizen Smart Card Emulator"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm hidden-tablet">« Tizen Smart C...</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="../ccid/README.html" title="Next Chapter: USB CCID Emulator"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm hidden-tablet">USB CCID Emulato... »</span>
|
||||
<a href="../ccid/README.html" title="Next Chapter: USB CCID Emulator"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm hidden-tablet">USB CCID Emulator »</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -164,173 +151,54 @@
|
||||
<div class="section" id="pc-sc-relay">
|
||||
<span id="pcsc-relay"></span><h1>PC/SC Relay<a class="headerlink" href="#pc-sc-relay" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="sidebar">
|
||||
<p class="first sidebar-title">Relay a smart card to a contactless interface</p>
|
||||
<table class="last docutils field-list" frame="void" rules="none">
|
||||
<col class="field-name" />
|
||||
<col class="field-body" />
|
||||
<tbody valign="top">
|
||||
<tr class="field-odd field"><th class="field-name">License:</th><td class="field-body"><p class="first">GPL version 3</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="field-even field"><th class="field-name" colspan="2">Tested Platforms:</th></tr>
|
||||
<tr class="field-even field"><td> </td><td class="field-body"><ul class="first last simple">
|
||||
<li>Windows</li>
|
||||
<li>Linux (Debian, Ubuntu, OpenMoko)</li>
|
||||
<p class="sidebar-title">Relay a smart card to a contactless interface</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">License</dt>
|
||||
<dd class="field-odd"><p>GPL version 3</p>
|
||||
</dd>
|
||||
<dt class="field-even">Tested Platforms</dt>
|
||||
<dd class="field-even"><ul class="simple">
|
||||
<li><p>Windows</p></li>
|
||||
<li><p>Linux (Debian, Ubuntu, OpenMoko)</p></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>Welcome to PC/SC Relay. The purpose of PC/SC Relay is to relay a smart
|
||||
card using an contact-less interface. Currently the following contact-less
|
||||
emulators are supported:</p>
|
||||
<ul class="simple">
|
||||
<li><a class="reference external" href="http://nfc-tools.org/index.php?title=Devices_compatibility_matrix">Hardware supported by libnfc</a> <a class="footnote-reference" href="#id1" id="id2">[1]</a></li>
|
||||
<li><a class="reference external" href="http://www.openpcd.org/OpenPICC">OpenPICC</a> <a class="footnote-reference" href="#id5" id="id6">[3]</a></li>
|
||||
<li><a class="reference internal" href="../ACardEmulator/README.html#acardemulator"><em>Android Smart Card Emulator</em></a></li>
|
||||
<li><p><a class="reference external" href="http://nfc-tools.org/index.php?title=Devices_compatibility_matrix">Hardware supported by libnfc</a> <a class="footnote-reference brackets" href="#id3" id="id4">1</a></p></li>
|
||||
<li><p><a class="reference external" href="http://www.openpcd.org/OpenPICC">OpenPICC</a> <a class="footnote-reference brackets" href="#id5" id="id6">2</a></p></li>
|
||||
<li><p><a class="reference internal" href="../ACardEmulator/README.html#acardemulator"><span class="std std-ref">Android Smart Card Emulator</span></a></p></li>
|
||||
</ul>
|
||||
<p>Command APDUs are received with the contact-less interface and relayed. The
|
||||
Response APDUs are then sent back via RFID. The contact-less data will be
|
||||
relayed to one of the following:</p>
|
||||
<ul class="simple">
|
||||
<li>to a <em>real</em> smart card inserted into one of the systems’ smart card readers.
|
||||
<li><p>to a <em>real</em> smart card inserted into one of the systems’ smart card readers.
|
||||
The smart card reader must be accessible with PC/SC. The smart card may be
|
||||
contact-based <em>or</em> contact-less.</li>
|
||||
<li>to a <a class="reference internal" href="../virtualsmartcard/README.html#vicc"><em>Virtual Smart Card</em></a> that directly connects to <strong class="command">pcsc-relay</strong>. The virtual
|
||||
smart card’s native interface is used and (despite its name) PC/SC Relay
|
||||
does not need to access PC/SC in this case.</li>
|
||||
contact-based <em>or</em> contact-less.</p></li>
|
||||
<li><p>to a <a class="reference internal" href="../virtualsmartcard/README.html#vicc"><span class="std std-ref">Virtual Smart Card</span></a> that directly connects to <strong class="command">pcsc-relay</strong>. The virtual
|
||||
smart card’s native interface is used and (despite its name) PC/SC Relay
|
||||
does not need to access PC/SC in this case.</p></li>
|
||||
</ul>
|
||||
<div class="figure">
|
||||
<p><img src="../_images/tikz-115ce7f91e19ed28b7af35a9f18aa096148209ea.svg" alt="\input{$wd/bilder/tikzstyles.tex}
|
||||
\node (pcsc-relay) {\texttt{pcsc-relay}};
|
||||
|
||||
\node [kleiner, right=2cm of pcsc-relay, yshift=.9cm]
|
||||
(libnfc) {Libnfc Devices};
|
||||
\node [kleiner, right=2cm of pcsc-relay, yshift=.3cm]
|
||||
(openpicc) {OpenPICC};
|
||||
\node [kleiner, right=2cm of pcsc-relay, yshift=-.3cm]
|
||||
(vpcd) {Virtual Smart Card Reader};
|
||||
\node [kleiner, right=2cm of pcsc-relay, yshift=-.9cm]
|
||||
(acardemulator) {Android Smart Card Emulator};
|
||||
|
||||
\node [kleiner, left=2cm of pcsc-relay, yshift=.9cm]
|
||||
(contactbased) {Contact-based Smart Card};
|
||||
\node [kleiner, left=2cm of pcsc-relay, yshift=.3cm]
|
||||
(contactless) {Contact-less Smart Card};
|
||||
\node [kleiner, left=2cm of pcsc-relay, yshift=-.9cm]
|
||||
(remotereader) {Remote Smart Card Reader};
|
||||
\node [kleiner, left=2cm of pcsc-relay, yshift=-.3cm]
|
||||
(virtual) {Virtual Smart Card};
|
||||
|
||||
\node [above=.3cm of pcsc-relay, kleiner, xshift=1.2cm]
|
||||
(capdu) {Command APDU};
|
||||
\node [below=.3cm of pcsc-relay, kleiner, xshift=-1.2cm]
|
||||
(rapdu) {Response APDU};
|
||||
\draw (rapdu.east) edge [pfeil] +(1,0);
|
||||
\draw (capdu.west) edge [pfeil] +(-1,0);
|
||||
|
||||
\begin{pgfonlayer}{background}
|
||||
\path[line width=.5cm,color=hublue!20]
|
||||
(pcsc-relay.mid) edge [out=180, in=0] (contactbased.east)
|
||||
edge [out=180, in=0] (contactless.east)
|
||||
edge [out=180, in=0] (virtual.east)
|
||||
edge [out=180, in=0] (remotereader.east)
|
||||
edge [out=0, in=180] (libnfc.west)
|
||||
edge [out=0, in=180] (openpicc.west)
|
||||
edge [out=0, in=180] (vpcd.west)
|
||||
edge [out=0, in=180] (acardemulator.west)
|
||||
;
|
||||
\end{pgfonlayer}" /></p>
|
||||
<p class="caption">Debug, Analyze and Emulate with PC/SC Relay</p></div><p>With PC/SC Relay you can relay a contact-less or contact based smart card
|
||||
over a long distance. Also you can use it in combination with the <a class="reference internal" href="../virtualsmartcard/README.html#vicc"><em>Virtual Smart Card</em></a>
|
||||
<div class="figure" id="id1" style="text-align: center">
|
||||
<p><img src="../_images/tikz-115ce7f91e19ed28b7af35a9f18aa096148209ea.svg" alt="Figure made with TikZ" /></p>
|
||||
<p class="caption"><span class="caption-text">Debug, Analyze and Emulate with PC/SC Relay</span></p>
|
||||
</div><p>With PC/SC Relay you can relay a contact-less or contact based smart card
|
||||
over a long distance. Also you can use it in combination with the <a class="reference internal" href="../virtualsmartcard/README.html#vicc"><span class="std std-ref">Virtual Smart Card</span></a>
|
||||
to completely emulate an ISO/IEC 14443 smart card.</p>
|
||||
<div class="figure">
|
||||
<p><img src="../_images/tikz-0405e52eb98193c32482e91a30737e1e9684bad0.svg" alt="\input{$wd/bilder/tikzstyles.tex}
|
||||
\tikzstyle{bla}=[shape=rectangle split, rectangle split parts=2,
|
||||
every text node part/.style={align=center, klein}, text width=7cm,
|
||||
every second node part/.style={kleiner}, inner sep=0pt]
|
||||
|
||||
\tikzstyle{keks}=[to path={-- ++(.1,0) |- (\tikztotarget)}]
|
||||
|
||||
\node (touchatag)
|
||||
{\includegraphics[keepaspectratio, height=2cm,
|
||||
width=2cm]{$wd/bilder/touchatag.png}};
|
||||
\node (touchatagbeschreibung) [below=0cm of touchatag, kleiner]
|
||||
{touchatag};
|
||||
|
||||
\node (pcsc-relay) [right=of touchatag]
|
||||
{\texttt{pcsc-relay}};
|
||||
\node (pcsc-relaybeschreibung) [below=0cm of pcsc-relay, kleiner]
|
||||
{NFC emulator
|
||||
};
|
||||
|
||||
\node (vicc) [right=of pcsc-relay]
|
||||
{\texttt{vicc -t nPA}};
|
||||
\node (viccbeschreibung) [below=0cm of vicc, kleiner]
|
||||
{nPA emulator};
|
||||
|
||||
\node (group) [fit=(touchatag) (pcsc-relay) (vicc) (touchatagbeschreibung)
|
||||
(pcsc-relaybeschreibung) (viccbeschreibung)] {};
|
||||
\node (funktionenchat) [below=0cm of group, bla]
|
||||
{
|
||||
PACE
|
||||
\nodepart{second}
|
||||
\begin{itemize}
|
||||
\item Display context (eID/eSign)
|
||||
\item Display requested permissions
|
||||
\end{itemize}
|
||||
};
|
||||
\node (funktionenpace) [below=.5 of funktionenchat, bla]
|
||||
{
|
||||
Terminal Authentication
|
||||
\nodepart{second}
|
||||
\begin{itemize}
|
||||
\item Verify authenticy of terminal
|
||||
\item Check freshness of cv certificate
|
||||
\item With certificate database
|
||||
\begin{itemize}
|
||||
\item Identification of service provider
|
||||
\item Display purpose of transaction
|
||||
\end{itemize}
|
||||
\end{itemize}
|
||||
};
|
||||
|
||||
\begin{pgfonlayer}{background}
|
||||
\node (box) [fit=(touchatag) (pcsc-relay) (vicc) (touchatagbeschreibung)
|
||||
(pcsc-relaybeschreibung) (viccbeschreibung) (funktionenchat)
|
||||
(funktionenpace), box, inner sep=.5cm] {};
|
||||
\node (boxbild) at (box.north west)
|
||||
{\includegraphics[keepaspectratio, height=1.5cm,
|
||||
width=1.5cm]{$wd/bilder/moko/moko_reader.png}};
|
||||
\node [right=0cm of boxbild.east, yshift=.3cm]
|
||||
{Openmoko Neo FreeRunner};
|
||||
\end{pgfonlayer}
|
||||
|
||||
\node (a) [left=1.5of box]
|
||||
{\includegraphics[keepaspectratio, height=4cm,
|
||||
width=4cm]{$wd/bilder/ivak_kiosk-terminal.pdf}};
|
||||
\node (e) [below=0cm of a, text width=2.5cm, align=center]
|
||||
{(Public) Terminal};
|
||||
|
||||
|
||||
\begin{pgfonlayer}{background}
|
||||
\path
|
||||
(touchatag) edge [doppelpfeil] (pcsc-relay)
|
||||
(pcsc-relay) edge [doppelpfeil] (vicc)
|
||||
(vicc.east) edge [keks, pfeil] (funktionenchat.text east)
|
||||
(vicc.east) edge [keks, pfeil] (funktionenpace.text east)
|
||||
(a) edge [decorate, decoration={expanding waves, angle=20, segment
|
||||
length=6}, nichtrundelinie] (touchatag.south west);
|
||||
\end{pgfonlayer}" /></p>
|
||||
<p class="caption">Emulate a contact-less German ID card to perform sanity checks</p></div><p>PC/SC Relay has the following dependencies:</p>
|
||||
<div class="figure" id="id2" style="text-align: center">
|
||||
<p><img src="../_images/tikz-0405e52eb98193c32482e91a30737e1e9684bad0.svg" alt="Figure made with TikZ" /></p>
|
||||
<p class="caption"><span class="caption-text">Emulate a contact-less German ID card to perform sanity checks</span></p>
|
||||
</div><p>PC/SC Relay has the following dependencies:</p>
|
||||
<ul class="simple">
|
||||
<li>PC/SC middleware</li>
|
||||
<li><a class="reference external" href="http://www.libnfc.org/">libnfc</a> <a class="footnote-reference" href="#id3" id="id4">[2]</a></li>
|
||||
<li><p>PC/SC middleware</p></li>
|
||||
</ul>
|
||||
<div class="admonition note">
|
||||
<p class="first admonition-title">Note</p>
|
||||
<p class="last">This software can actually be used in a relay attack allowing full access
|
||||
<p class="admonition-title">Note</p>
|
||||
<p>This software can actually be used in a relay attack allowing full access
|
||||
to the card. We discussed the impact especially on the <a class="reference external" href="http://media.ccc.de/browse/congress/2010/27c3-4297-de-die_gesamte_technik_ist_sicher.html">Relay attack
|
||||
against the German ID card</a>,
|
||||
but it generally concerns <em>all</em> contact-less smart cards.</p>
|
||||
@@ -340,7 +208,7 @@ but it generally concerns <em>all</em> contact-less smart cards.</p>
|
||||
<p>You can find the latest release of PC/SC Relay on <a class="reference external" href="https://github.com/frankmorgner/vsmartcard/releases">Github</a>. Older releases are
|
||||
still available on <a class="reference external" href="http://sourceforge.net/projects/vsmartcard/files">Sourceforge</a>.</p>
|
||||
<p>Alternatively, you can clone our git repository:</p>
|
||||
<div class="highlight-sh"><div class="highlight"><pre>git clone https://github.com/frankmorgner/vsmartcard.git
|
||||
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>git clone https://github.com/frankmorgner/vsmartcard.git
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -349,16 +217,16 @@ still available on <a class="reference external" href="http://sourceforge.net/pr
|
||||
<div class="section" id="installation-on-linux-unix-and-similar">
|
||||
<h3>Installation on Linux, Unix and similar<a class="headerlink" href="#installation-on-linux-unix-and-similar" title="Permalink to this headline">¶</a></h3>
|
||||
<p>The PC/SC Relay uses the GNU Build System to compile and install. If you are
|
||||
unfamiliar with it, please have a look at <tt class="file docutils literal"><span class="pre">INSTALL</span></tt>. If you can not find
|
||||
it, you are probably working bleeding edge in the repository. Run the
|
||||
following command in <tt class="file docutils literal"><span class="pre">pcsc-relay</span></tt> to get the missing standard
|
||||
auxiliary files:</p>
|
||||
<div class="highlight-sh"><div class="highlight"><pre>autoreconf --verbose --install
|
||||
unfamiliar with it, please have a look at <code class="file docutils literal notranslate"><span class="pre">INSTALL</span></code>. If you can not find
|
||||
it, you are probably working bleeding edge in the repository. To generate the
|
||||
missing standard auxiliary files you need to additionally install <cite>libtool</cite> and
|
||||
<cite>pkg-config</cite> and run the following command in <code class="file docutils literal notranslate"><span class="pre">pcsc-relay</span></code>:</p>
|
||||
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>autoreconf --verbose --install
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>To configure (<strong class="command">configure –help</strong> lists possible options), build and
|
||||
<p>To configure (<strong class="command">configure --help</strong> lists possible options), build and
|
||||
install the PC/SC Relay now do the following:</p>
|
||||
<div class="highlight-sh"><div class="highlight"><pre>./configure
|
||||
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>./configure
|
||||
make
|
||||
make install
|
||||
</pre></div>
|
||||
@@ -368,21 +236,21 @@ make install
|
||||
<h3>Hints on libnfc<a class="headerlink" href="#hints-on-libnfc" title="Permalink to this headline">¶</a></h3>
|
||||
<p>Here is an example of how to get the standard
|
||||
installation of libnfc:</p>
|
||||
<div class="highlight-sh"><div class="highlight"><pre><span class="nv">PREFIX</span><span class="o">=</span>/tmp/install
|
||||
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span><span class="nv">PREFIX</span><span class="o">=</span>/tmp/install
|
||||
<span class="nv">LIBNFC</span><span class="o">=</span>libnfc
|
||||
git clone https://code.google.com/p/libnfc <span class="nv">$LIBNFC</span>
|
||||
git clone https://github.com/nfc-tools/libnfc <span class="nv">$LIBNFC</span>
|
||||
<span class="nb">cd</span> <span class="nv">$LIBNFC</span>
|
||||
autoreconf -i
|
||||
<span class="c"># See `./configure --help` for enabling support of additional hardware</span>
|
||||
<span class="c1"># See `./configure --help` for enabling support of additional hardware</span>
|
||||
./configure --prefix<span class="o">=</span><span class="nv">$PREFIX</span>
|
||||
make
|
||||
make install
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>Building PC/SC Relay with libnfc is done best using <strong class="command">pkg-config</strong>. The file
|
||||
<tt class="file docutils literal"><span class="pre">libnfc.pc</span></tt> should be located in <tt class="docutils literal"><span class="pre">$INSTALL/lib/pkgconfig</span></tt>. Here is how to
|
||||
<code class="file docutils literal notranslate"><span class="pre">libnfc.pc</span></code> should be located in <code class="docutils literal notranslate"><span class="pre">$INSTALL/lib/pkgconfig</span></code>. Here is how to
|
||||
configure PC/SC Relay to use it:</p>
|
||||
<div class="highlight-sh"><div class="highlight"><pre>./configure <span class="nv">PKG_CONFIG_PATH</span><span class="o">=</span><span class="nv">$PREFIX</span>/lib/pkgconfig
|
||||
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>./configure <span class="nv">PKG_CONFIG_PATH</span><span class="o">=</span><span class="nv">$PREFIX</span>/lib/pkgconfig
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -390,46 +258,43 @@ configure PC/SC Relay to use it:</p>
|
||||
<h3>Hints on Android Smart Card Emulator<a class="headerlink" href="#hints-on-android-smart-card-emulator" title="Permalink to this headline">¶</a></h3>
|
||||
<p>The Android Smart Card Emulator is build around the host card emulation mode of
|
||||
Android 4.4 and later. This mode activates the app if the terminal issues a
|
||||
SELECT command with one of the app’s application identifiers. By default, the
|
||||
SELECT command with one of the app’s application identifiers. By default, the
|
||||
app only registers for the AIDs for which it has a built-in emulator (see
|
||||
<tt class="file docutils literal"><span class="pre">ACardEmulator/app/src/main/res/xml/aid_list.xml</span></tt>).</p>
|
||||
<code class="file docutils literal notranslate"><span class="pre">ACardEmulator/app/src/main/res/xml/aid_list.xml</span></code>).</p>
|
||||
<p>If used together with PC/SC Relay, you need to change add AIDs to match the
|
||||
applications on the relayed card. Otherwise the app will not be activated when
|
||||
it should relay command APDUs to PC/SC Relay.</p>
|
||||
<p>Modify the Smart Card Emulator settings to use <tt class="docutils literal"><span class="pre">Remote</span> <span class="pre">Virtual</span> <span class="pre">Smart</span> <span class="pre">Card</span></tt> as
|
||||
<em class="guilabel">Smart Card Emulator</em>. Now start <strong class="command">pcsc-relay</strong> by specifying
|
||||
<p>Modify the Smart Card Emulator settings to use <code class="docutils literal notranslate"><span class="pre">Remote</span> <span class="pre">Virtual</span> <span class="pre">Smart</span> <span class="pre">Card</span></code> as
|
||||
<span class="guilabel">Smart Card Emulator</span>. Now start <strong class="command">pcsc-relay</strong> by specifying
|
||||
usage of the vpcd emulator:</p>
|
||||
<div class="highlight-sh"><div class="highlight"><pre>pcsc-relay --emulator vpcd
|
||||
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>pcsc-relay --emulator vpcd
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>In the app, change the <em class="guilabel">VICC Hostname</em> and <em class="guilabel">VICC Port</em> to
|
||||
<p>In the app, change the <span class="guilabel">VICC Hostname</span> and <span class="guilabel">VICC Port</span> to
|
||||
match the location where <strong class="command">pcsc-relay</strong> is waiting for an incoming
|
||||
connection. When the app receives a SELECT command to one of the configured
|
||||
AIDs, it will connect to <strong class="command">pcsc-relay</strong>, which will then relay the
|
||||
command for processing.</p>
|
||||
<p>Compiling and installing Android Smart Card Emulator is covered in its
|
||||
<a class="reference internal" href="../ACardEmulator/README.html#acardemulator-install"><em>Download and Install</em></a> section.</p>
|
||||
<a class="reference internal" href="../ACardEmulator/README.html#acardemulator-install"><span class="std std-ref">Download and Install</span></a> section.</p>
|
||||
</div>
|
||||
<div class="section" id="hints-on-pc-sc-middleware">
|
||||
<h3>Hints on PC/SC middleware<a class="headerlink" href="#hints-on-pc-sc-middleware" title="Permalink to this headline">¶</a></h3>
|
||||
<p>A PC/SC middleware is included by default in most modern operating systems. On
|
||||
Unix-like systems (Linux, OS X, Sun OS) it is realized by <a class="reference external" href="https://pcsclite.apdu.fr/">PCSC-Lite</a> <a class="footnote-reference" href="#id7" id="id8">[4]</a>. To
|
||||
Unix-like systems (Linux, OS X, Sun OS) it is realized by <a class="reference external" href="https://pcsclite.apdu.fr/">PCSC-Lite</a> <a class="footnote-reference brackets" href="#id7" id="id8">3</a>. To
|
||||
compile PC/SC Relay you will need to install the PCSC-Lite headers from
|
||||
your distribution.</p>
|
||||
<p>Windows also ships with a PC/SC middleware in form of the Winscard module.
|
||||
PC/SC Relay can be (cross) compiled with MinGW-w64. Also, Microsoft’s
|
||||
PC/SC Relay can be (cross) compiled with MinGW-w64. Also, Microsoft’s
|
||||
developement environment Visual Studio includes all necessary data for building
|
||||
PC/SC Relay.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="usage">
|
||||
<h2>Usage<a class="headerlink" href="#usage" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-text"><div class="highlight"><pre>PC/SC Relay 0.5
|
||||
|
||||
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>Usage: pcsc-relay [OPTION]...
|
||||
Relay a smart card to a contactless interface
|
||||
|
||||
Usage: pcsc-relay [OPTIONS]...
|
||||
|
||||
Using an contact-less interface (currently OpenPICC or libnfc) pcsc-relay
|
||||
receives command APDUs which are forwared to an existing smart card via PC/SC.
|
||||
pcsc-relay sends the response APDU back to the contact-less interface.
|
||||
@@ -460,6 +325,7 @@ Virtual Smart Card Reader emulator:
|
||||
-N, --vicc-hostname=STRING Hostname for connecting to virtual smart card
|
||||
reader (default=`wait for an incoming
|
||||
connection')
|
||||
-A, --vicc-atr=STRING ATR (default=`3B80800101')
|
||||
|
||||
Report bugs to https://github.com/frankmorgner/vsmartcard/issues
|
||||
|
||||
@@ -468,55 +334,55 @@ Written by Frank Morgner and Dominik Oepen
|
||||
</div>
|
||||
<p>Below we explain what option to choose for the emulator which receives a
|
||||
command APDU and transmits a response APDU back to the terminal:</p>
|
||||
<table border="1" class="docutils">
|
||||
<table class="docutils align-default">
|
||||
<colgroup>
|
||||
<col width="78%" />
|
||||
<col width="22%" />
|
||||
<col style="width: 78%" />
|
||||
<col style="width: 22%" />
|
||||
</colgroup>
|
||||
<thead valign="bottom">
|
||||
<tr class="row-odd"><th class="head">Option</th>
|
||||
<th class="head"><tt class="docutils literal"><span class="pre">--emulator</span></tt></th>
|
||||
<thead>
|
||||
<tr class="row-odd"><th class="head"><p>Option</p></th>
|
||||
<th class="head"><p><code class="docutils literal notranslate"><span class="pre">--emulator</span></code></p></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody valign="top">
|
||||
<tr class="row-even"><td>Emulation hardware supported via libnfc</td>
|
||||
<td><tt class="docutils literal"><span class="pre">libnfc</span></tt></td>
|
||||
<tbody>
|
||||
<tr class="row-even"><td><p>Emulation hardware supported via libnfc</p></td>
|
||||
<td><p><code class="docutils literal notranslate"><span class="pre">libnfc</span></code></p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td>Emulation with OpenPICC</td>
|
||||
<td><tt class="docutils literal"><span class="pre">openpicc</span></tt></td>
|
||||
<tr class="row-odd"><td><p>Emulation with OpenPICC</p></td>
|
||||
<td><p><code class="docutils literal notranslate"><span class="pre">openpicc</span></code></p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td>Android Smart Card Emulator</td>
|
||||
<td><tt class="docutils literal"><span class="pre">vpcd</span></tt></td>
|
||||
<tr class="row-even"><td><p>Android Smart Card Emulator</p></td>
|
||||
<td><p><code class="docutils literal notranslate"><span class="pre">vpcd</span></code></p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td>Virtual Smart Card</td>
|
||||
<td><tt class="docutils literal"><span class="pre">vpcd</span></tt></td>
|
||||
<tr class="row-odd"><td><p>Virtual Smart Card</p></td>
|
||||
<td><p><code class="docutils literal notranslate"><span class="pre">vpcd</span></code></p></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>Below we explain what option to choose for the connector which calculates
|
||||
a response APDU from a given command APDU:</p>
|
||||
<table border="1" class="docutils">
|
||||
<table class="docutils align-default">
|
||||
<colgroup>
|
||||
<col width="77%" />
|
||||
<col width="23%" />
|
||||
<col style="width: 77%" />
|
||||
<col style="width: 23%" />
|
||||
</colgroup>
|
||||
<thead valign="bottom">
|
||||
<tr class="row-odd"><th class="head">Option</th>
|
||||
<th class="head"><tt class="docutils literal"><span class="pre">--connector</span></tt></th>
|
||||
<thead>
|
||||
<tr class="row-odd"><th class="head"><p>Option</p></th>
|
||||
<th class="head"><p><code class="docutils literal notranslate"><span class="pre">--connector</span></code></p></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody valign="top">
|
||||
<tr class="row-even"><td>Contact-based Smart Card in PC/SC Reader</td>
|
||||
<td><tt class="docutils literal"><span class="pre">pcsc</span></tt></td>
|
||||
<tbody>
|
||||
<tr class="row-even"><td><p>Contact-based Smart Card in PC/SC Reader</p></td>
|
||||
<td><p><code class="docutils literal notranslate"><span class="pre">pcsc</span></code></p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td>Contact-less Smart Card in PC/SC Reader</td>
|
||||
<td><tt class="docutils literal"><span class="pre">pcsc</span></tt></td>
|
||||
<tr class="row-odd"><td><p>Contact-less Smart Card in PC/SC Reader</p></td>
|
||||
<td><p><code class="docutils literal notranslate"><span class="pre">pcsc</span></code></p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td>Contact-less Smart Card in Remote Smart Card Reader</td>
|
||||
<td><tt class="docutils literal"><span class="pre">vicc</span></tt></td>
|
||||
<tr class="row-even"><td><p>Contact-less Smart Card in Remote Smart Card Reader</p></td>
|
||||
<td><p><code class="docutils literal notranslate"><span class="pre">vicc</span></code></p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td>Virtual Smart Card</td>
|
||||
<td><tt class="docutils literal"><span class="pre">vicc</span></tt></td>
|
||||
<tr class="row-odd"><td><p>Virtual Smart Card</p></td>
|
||||
<td><p><code class="docutils literal notranslate"><span class="pre">vicc</span></code></p></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -528,30 +394,17 @@ more than welcome! Please use our <a class="reference external" href="https://gi
|
||||
</div>
|
||||
<div class="section" id="notes-and-references">
|
||||
<h2>Notes and References<a class="headerlink" href="#notes-and-references" title="Permalink to this headline">¶</a></h2>
|
||||
<table class="docutils footnote" frame="void" id="id1" rules="none">
|
||||
<colgroup><col class="label" /><col /></colgroup>
|
||||
<tbody valign="top">
|
||||
<tr><td class="label"><a class="fn-backref" href="#id2">[1]</a></td><td><a class="reference external" href="http://nfc-tools.org/index.php?title=Devices_compatibility_matrix">http://nfc-tools.org/index.php?title=Devices_compatibility_matrix</a></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="docutils footnote" frame="void" id="id3" rules="none">
|
||||
<colgroup><col class="label" /><col /></colgroup>
|
||||
<tbody valign="top">
|
||||
<tr><td class="label"><a class="fn-backref" href="#id4">[2]</a></td><td><a class="reference external" href="http://www.libnfc.org/">http://www.libnfc.org/</a></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="docutils footnote" frame="void" id="id5" rules="none">
|
||||
<colgroup><col class="label" /><col /></colgroup>
|
||||
<tbody valign="top">
|
||||
<tr><td class="label"><a class="fn-backref" href="#id6">[3]</a></td><td><a class="reference external" href="http://www.openpcd.org/OpenPICC">http://www.openpcd.org/OpenPICC</a></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="docutils footnote" frame="void" id="id7" rules="none">
|
||||
<colgroup><col class="label" /><col /></colgroup>
|
||||
<tbody valign="top">
|
||||
<tr><td class="label"><a class="fn-backref" href="#id8">[4]</a></td><td><a class="reference external" href="https://pcsclite.apdu.fr/">https://pcsclite.apdu.fr/</a></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<dl class="footnote brackets">
|
||||
<dt class="label" id="id3"><span class="brackets"><a class="fn-backref" href="#id4">1</a></span></dt>
|
||||
<dd><p><a class="reference external" href="http://nfc-tools.org/index.php?title=Devices_compatibility_matrix">http://nfc-tools.org/index.php?title=Devices_compatibility_matrix</a></p>
|
||||
</dd>
|
||||
<dt class="label" id="id5"><span class="brackets"><a class="fn-backref" href="#id6">2</a></span></dt>
|
||||
<dd><p><a class="reference external" href="http://www.openpcd.org/OpenPICC">http://www.openpcd.org/OpenPICC</a></p>
|
||||
</dd>
|
||||
<dt class="label" id="id7"><span class="brackets"><a class="fn-backref" href="#id8">3</a></span></dt>
|
||||
<dd><p><a class="reference external" href="https://pcsclite.apdu.fr/">https://pcsclite.apdu.fr/</a></p>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -567,9 +420,9 @@ more than welcome! Please use our <a class="reference external" href="https://gi
|
||||
|
||||
</p>
|
||||
<p>
|
||||
© Copyright 2009-2017 by Dominik Oepen and Frank Morgner.<br/>
|
||||
© Copyright 2009-2021 by Dominik Oepen and Frank Morgner.<br/>
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
Reference in New Issue
Block a user