Re: [Users] SSH Sentinel + Freeswan 1.8 + GemSAFE Smartcard

From: Andreas Steffen (andreas.steffen_at_strongsec.net)
Date: Thu Aug 08 2002 - 12:18:09 CEST


The private key with which Sentinel encrypts the hash and
the public key contained in Sentinel's certificate do not
match. FreeS/WAN receives Sentinel's certificate and tries
to decrypt the signature using the embedded public key.
But the decrypted hash does not match the hash computed
by FreeS/WAN. Since the hash is normally padded according
to the recommendations defined in PKCS#1, FreeS/WAN deduces
that the wrong key has been used if no known padding pattern
is present after decryption.

Have you verified that Sentinel sends the correct certificate
contained in the smartcard? Is there another self-signed
Sentinel certificate around? Use ipsec auto --listpubkeys or the
debugging option plutodebug=all to find out.

Regards

Andreas

Claus-Ruediger Meier wrote:
> Hello,
>
> I have a problem with Freeswan 1.8 + X.509 Patch and SSH Sentinel 1.3.2.2 when I try to use a certificate on a smartcard.
>
> All works fine if I use a certificate stored on the harddisk for SSH Sentinel. But when I change the configuration in SSH to use a stored certificate on a GemSafe smartcard, Freeswan has a problem. With plutodebug=all I get the following lines:
> ...
> next payload type: ISAKMP_NEXT_ID
> ISAKMP version: ISAKMP Version 1.0
> exchange type: ISAKMP_XCHG_IDPROT
> flags: ISAKMP_FLAG_ENCRYPTION
> message ID: 00 00 00 00
> Peer's ID is ID_USER_FQDN: 'aa_at_ddddddd.de'
> hashing 56 bytes ofSA
> Hashing his ID: Type ID_USER_FQDN, Protocol 0, Port 0
> ID to be hashed: 03 00 00 00
> ID to be hashed: 61 61 40 64 64 64 64 64 64 64 2e 64 65
> "gateway-demopc6" #132: SIG did not decrypt into good ECB: no leading 00. Bad key ?
> state transition function for STATE_MAIN_R2 failed: INVALID_KEY_INFORMATION
> next event EVENT_RETRANSMITin 20 seconds for #132
> ...
>
> I looked at my ipsec.conf for identical subjects in their corresponding RSA-certificate, but there is all ok.
>
> SSH Sentinel runs on an W2K machine. The smartcard is a GEMSafe GPK16000, the reader ist a GEM PC410, the card holds only the certificate, the private and the public key (1024 bits). SSH Sentinel gets the keys, certificates in using SSH Accession Version 1.1. The cryptoki is gclib.dll Version 2.01.
>
>
> Has anyone ever tried to use such a constellation, with a smartcard stored certificate/keypair ? What exactly means "ECB: no leading 00" ?
>
> Regards,
> Claus-Rüdiger
>
> _______________________________________________
> Users mailing list
> Users_at_lists.freeswan.org
> http://lists.freeswan.org/mailman/listinfo/users

-- 
======================================================================
Andreas Steffen                 e-mail: andreas.steffen_at_strongsec.com
strongSec GmbH                  phone:  +41 76 340 25 56
Alter Zürichweg 20              home:   http://www.strongsec.com
CH-8952 Schlieren (Switzerland)
==========================================[strong internet security]==

_______________________________________________ Users mailing list Users_at_lists.freeswan.org http://lists.freeswan.org/mailman/listinfo/users



This archive was generated by hypermail 2.1.4 : Thu Aug 08 2002 - 16:19:33 CEST