Re: X509 certificates with ssh
From: Julie Bielski (JBIELSKI1_at_nc.rr.com)
Date: 10/25/03
- Previous message: Peter: "FTPS question.."
- In reply to: Timo Felbinger: "Re: X509 certificates with ssh"
- Next in thread: Timo Felbinger: "Re: X509 certificates with ssh"
- Reply: Timo Felbinger: "Re: X509 certificates with ssh"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 25 Oct 2003 01:37:34 GMT
Timo,
Thanks for your response. My bigger problem turned out to be the private key
rather than the public key. The keytool utility does not allow you to
extract the private key from it's Java Key Store file (.keystore). Without
the private key, there's no way to authenticate. So I just decided to use
separate keys for signing vs. authentication. I'll use the keys I created
with keytool for signing, and my id_dsa/id_dsa.pub keys for authentication
with ssh.
J.
"Timo Felbinger" <Timo.Felbinger@quantum.physik.uni-potsdam.de> wrote in
message
news:Pine.LNX.4.58.0310221740220.1821@uranos.quantum.physik.uni-potsdam.de..
.
>
>
> On Wed, 22 Oct 2003, Julie Bielski wrote:
>
> > I created a DSA keypair using the 'keytool -genkey' utility that comes
with
> > the java SDK and exported it to an X509 certificate file using the
> > 'keytool -export' command. I'd like to use the public key with ssh so
that I
> > can authenticate to an account I have on another system. The remote
system
> > is running RedHat 8, which I think uses OpenSSH.
> > I read somewhere that X509 certificates are not yet supported by SSH. Is
> > there a way I can transfrom my *.cer file into a *.pub file?
> >
>
> Funny, I am trying to do almost the same thing (however, I am
> using RSA keys, created with "openssl rsagen" and converted into
> a certificate using "openssl req" and "openssl ca").
>
> Like you, I did not find a canonical way to extract a public key
> in OpenSSH format from certificates, so I wrote a small tool which
> works for me:
> http://www.timof.qipc.org/x509toOpenSSH.c
>
> Use it at your own risk. Currently, it only works for RSA keys,
> but it should not be hard to implement DSA, too.
>
> Regards,
>
> Timo Felbinger
>
>
> --
> Timo Felbinger <Timo.Felbinger@physik.uni-potsdam.de>
> Quantum Physics Group http://www.quantum.physik.uni-potsdam.de
> Institut fuer Physik Tel: +49 331 977 1793 Fax: -1767
> Universitaet Potsdam, Germany
- Previous message: Peter: "FTPS question.."
- In reply to: Timo Felbinger: "Re: X509 certificates with ssh"
- Next in thread: Timo Felbinger: "Re: X509 certificates with ssh"
- Reply: Timo Felbinger: "Re: X509 certificates with ssh"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|