Re: Convert pem key to ssh-rsa format

2009-06-19 Thread Adriana Rodean
Hi Dave, Thank you so much for reply... To answer your question why i need to do this: - i have a WCF Client program that generates pair of keys, with these keys a java service is called, this java service calls a CA authority and gives me a certificate that contain only public key i sent - on cl

Re: Convert pem key to ssh-rsa format

2009-06-19 Thread Mounir IDRASSI
Hi, I have already posted to this list a C code of a program that converts from an OpenSSL public key to an OpenSSH public key. You can grab the code from the following link and compile it yourself : http://www.idrix.fr/Root/Samples/pubkey2ssh.c Cheers, -- Mounir IDRASSI IDRIX http://www.idri

RE: Convert pem key to ssh-rsa format

2009-06-19 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Adriana Rodean > Sent: Friday, 19 June, 2009 00:55 > I have a certificate in der format, from it with this command > i generate a public key: > How can i obtain a public key like the following? Either from > certificate or from this public k

Convert pem key to ssh-rsa format

2009-06-18 Thread Adriana Rodean
Hi I have a certificate in der format, from it with this command i generate a public key: openssl x509 -inform der -in ejbcacert.cer -noout -pubkey > pub1key.pub result is this: -BEGIN PUBLIC KEY- MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC7vbqajDw4o6gJy8UtmIbkcpnk O3Kwc4qsEnSZp/TR+fQi62F79