<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=3&amp;t=2060" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2015-10-27T09:27:02+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=3&amp;t=2060</id>
<entry>
<author><name><![CDATA[Tom2]]></name></author>
<updated>2015-10-27T09:27:02+01:00</updated>
<published>2015-10-27T09:27:02+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2060&amp;p=7924#p7924</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2060&amp;p=7924#p7924"/>
<title type="html"><![CDATA[Re: API key not working with ykclient in PAM]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2060&amp;p=7924#p7924"><![CDATA[
it should look something like this, the API key is base 64 encoded don't have to touch it:<br /><br />root@vendetta:/etc/pam.d# cat yubi-auth<br />auth sufficient pam_yubico.so id=123456 key=2bD7GmNwNmJv3mKKazuumqTdTrM= authfile=/etc/ssh/yubikey_mappings url=https://api.yubico.com/wsapi/2.0/verify?id=%d&amp;otp=%s debug<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3364">Tom2</a> — Tue Oct 27, 2015 9:27 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[st33med]]></name></author>
<updated>2015-10-14T20:08:09+01:00</updated>
<published>2015-10-14T20:08:09+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2060&amp;p=7889#p7889</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2060&amp;p=7889#p7889"/>
<title type="html"><![CDATA[API key not working with ykclient in PAM]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2060&amp;p=7889#p7889"><![CDATA[
I'm having issues with trying to do SSH sessions with my Yubikey as a two factor authorization. When I use it without the key field for pam_yubico.so, it works fine. However, when I put the secret API key that I have generated for it, it fails with the server signature being invalid (BAD_SERVER_SIGNATURE) according to the debug log output. <br /><br />I have a few questions: is the API key needed for this, and if so, for what? Additionally, if there are pluses and equals in my API key, should I convert that to a URL friendly format? <br /><br />I'm also using this on Raspberry Pi 2 with Raspbian.<br /><br />Here is the PAM line I use at the top of my pam.d/sshd file (key removed)<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">auth    required        pam_yubico.so id=25108 key=XXXXXXX authfile=/etc/yubi-map debug</div><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3969">st33med</a> — Wed Oct 14, 2015 8:08 pm</p><hr />
]]></content>
</entry>
</feed>