LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-13-2009, 11:55 PM   #1
umarzuki
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 61

Rep: Reputation: 15
ssh with DER x509 certificate


I want to do a ssh login to a linux server with putty using certificate from my usb dongle. I had successfully tried ssh login with certificate if i generated the certificate from that ssh server itself but in this case, it is from ldap server.

Copying that x509 cert (either binary or PEM) into .ssh/authorized_keys asked for password instead of passphrase.

below is sshd_config configurations:
Quote:
Protocol 2
SyslogFacility AUTHPRIV
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile /home/user1/.ssh/authorized_keys
PasswordAuthentication no
ChallengeResponseAuthentication no
GSSAPIAuthentication yes
GSSAPICleanupCredentials yes
UsePAM yes
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL
X11Forwarding yes
Subsystem sftp /usr/libexec/openssh/sftp-server
is it in the configuration files or in the certificate?
 
Old 09-14-2009, 07:26 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Are you using a version of OpenSSH that supports x509 certificates? The only one I know of is http://roumenpetrov.info/openssh/, which isn't installed by default on any distributions.
 
Old 09-14-2009, 07:43 PM   #3
umarzuki
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 61

Original Poster
Rep: Reputation: 15
I don't believe I'm using one. Is there any known putty (ssh client) that supports x.509 and do I need to compile sshd on the server to a version that supports it?
 
Old 09-14-2009, 08:15 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Can putty's puttygen.exe program load the certificate you have. If so it should display the openssh compatible version of the public key in the top which you can copy and add that to the end of the authorized_keys file on the ssh server.

If not, look at "openssl x509 --help" for conversion options.

Last edited by jschiwal; 09-14-2009 at 08:18 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenSSL x509: Expecting: CERTIFICATE REQUEST chakkerz Linux - Networking 5 06-10-2010 11:28 AM
How can I create an X509 .pfx certificate from an existing gpg key pair? stardotstar Linux - Security 0 11-15-2007 06:37 PM
put x509 certificate inside a file feedback Linux - Security 0 04-28-2006 04:08 AM
Help with x509 certificate and freeswan cmisip Linux - Security 3 08-18-2003 11:18 PM
certificate authentication for ssh cuss Linux - Security 1 12-16-2002 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration