export public host key

Core FTP Server questions and answers
Post Reply
sovtek
Posts: 4
Joined: Thu Nov 26, 2009 12:32 pm

export public host key

Post by sovtek »

I'm using CoreFTP server.
I need to export the public host key in openSSH format to send to a user who will put it in their known hosts.
I'm unable to find the public host key to do this?

Many Thanks
sovtek
Posts: 4
Joined: Thu Nov 26, 2009 12:32 pm

Post by sovtek »

Is there no way to do this? I've looked all through the documentation for coreftp server and in this forum and unable to find a solution.
sovtek
Posts: 4
Joined: Thu Nov 26, 2009 12:32 pm

Post by sovtek »

[quote="CP"]for SSL/FTPS, there should be a .cer file in the CoreFTPServer\certs subdirectory.

For OpenSSH, you can export the public key from the CoreFTPServer\certs subdirectory, but you would have to use OpenSSL to do so... Which probably means Core FTP Server needs an option to do this for the user.[/quote]

I can get the user public keys that you can generate in CoreFTP but what I need is the public host key that is advertised when you connect to the server.
All I see in C:\Program Files\CoreFTPServer\certs is a private key. I don't really want to send that out to the client.
sovtek
Posts: 4
Joined: Thu Nov 26, 2009 12:32 pm

Post by sovtek »

I think I found my own solution
If you run ..\OpenSSH\bin\ssh-keygen -y -f "..\CoreFTPServer\certs\0000000*" > host_key.pub on the domain cert file where "*" is the # of domain then a public host key will be created.
Post Reply