Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-20-2009, 12:30 PM   PM User | #1
wb4php
New to the CF scene

 
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
wb4php is an unknown quantity at this point
Question SSH (private) key generation

Hi,

I started a new topic as the search delivered nothing.

Does anybody know of an easy way to dynamically generate an RSA SSH private key using PHP?

The only solution I have so far is to call/execute the script 'ssh-keygen.exe' with the correct parameters, load the generated key from file and delete the file afterwards. (Unfortunately) this will work on our Apache server (using Debian Linux) but not under my development environment where I use XAMPP on a Windows machine.

I have seen there is a Chilkat.Sshkey class available, but apparently one must by the activex component that actually generates the keys. And from what I can see, it is only windows based.

Any other classes/packages available for this? Or is there a way to get ssh-keygen to return the generated key in a variable instead of saving it to file?

The background:
I want to dynamically generate a private SSH Key when a user registers for our service. This key can be downloaded (.zip via sftp) by the user.

Any helpful info would be greatly appreciated!

wb4php
wb4php is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:16 AM.


Advertisement
Log in to turn off these ads.