LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-14-2009, 12:55 AM   #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, 08:26 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
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, 08: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, 09:15 PM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
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 09:18 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:28 PM
How can I create an X509 .pfx certificate from an existing gpg key pair? stardotstar Linux - Security 0 11-15-2007 07:37 PM
put x509 certificate inside a file feedback Linux - Security 0 04-28-2006 05:08 AM
Help with x509 certificate and freeswan cmisip Linux - Security 3 08-19-2003 12:18 AM
certificate authentication for ssh cuss Linux - Security 1 12-16-2002 10:48 AM


All times are GMT -5. The time now is 01:26 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration