It turns out that there's a function that (I think!) will export the key in ssh format for you: SecKeychainItemExport(). I suspect the format you want is kSecFormatSSHv2. I can't say for sure, though, because I haven't actually tried it. But I'd give that a shot and see what happens.
In case it isn't already obvious to you, you might also want to follow this advice: http://www.iphonedevsdk.com/forum/iphone-sdk-development/41323-note-about-seckeygeneratepair.html
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-09-11