Hmm. That does seem odd.

Use openssl genrsa to generate the private key.
Use openssl rsa -pubout to generate the public key from the private key.

Charles

From: owner-openssl-us...@openssl.org
[mailto:owner-openssl-us...@openssl.org] On Behalf Of ML Harmon
Sent: Friday, August 31, 2012 12:10 PM
To: openssl-users@openssl.org
Subject: Re: Creating a SSH Key pair - public and private for my Windows
2008 server app so it can communicate with a partner sftp site

I was good with openssl until this link.
 
http://www.openssl.org/docs/HOWTO/keys.txt
 
It says openssl creates one file for both the public and private keys. That
doesn't make sense to me.
See my above link.
"With OpenSSL, the private key contains the
public key information as well, so a public key doesn't need to be
generated separately."
 
So how to I send my business partner the public key and I keep the private
key if they are both in one file?
So I am missing something here, I expected 2 files for my key a public and
private.
 



 
On Fri, Aug 31, 2012 at 11:39 AM, Charles Mills <charl...@mcn.org> wrote:
You can do this with the openssl.exe utility.

I am less than an expert but the doc is here:
http://www.openssl.org/docs/apps/openssl.html

Take a look at openssl.exe req -newkey

Charles
From: owner-openssl-us...@openssl.org
[mailto:owner-openssl-us...@openssl.org] On Behalf Of ML Harmon
Sent: Friday, August 31, 2012 1:26 AM
To: openssl-users@openssl.org
Subject: Creating a SSH Key pair - public and private for my Windows 2008
server app so it can communicate with a partner sftp site

I have a Windows 2008 server that runs an application I use to transfer
files to my business partner's site via sftp.
I need to generate a SSH key pair with openssl and then send my partner the
public key while I keep the private key.
I don't know how to do this with openssl, can someone help me?
 
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to