-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error in events.js on t2 key generate (Windows) #24
Comments
@dalestone This is actually an issue with the |
@johnnyman727 Ah I see that explains why! There is SharpSSH |
if you allowed your install of Git to enhance your %PATH% with unix tools this shouldn't be a problem.
You could do a warn about it with insurePath and then not have to support a second type of SSH library perhaps? |
I'm trying to fix this here: ericvicenti/ssh-keygen#5 I would love it if you could help me try it out since I don't have access to windows. If you could change the dependency in |
@dalestone I didn't get around to writing the You can manually |
@johnnyman727 Thanks that removed it. 👍 @LinusU No luck so far! 😢. I changed the package.json and did a
So I created the directory it was looking for and copied the
|
@dalestone Fixed the first error, taking a look at the second one now... |
@dalestone There is a bug in t2-cli which prevents you from seeing the error that actually happens, could you try with this patch applied? tessel/t2-cli#206 |
@LinusU Ah OK, I have added your
|
I hate to ask you to do the debugging for me when we really should have better error handling and logging in place but here goes. If you could log Also, my patch got merged so you can just use |
@LinusU No problem its fun to look at the code 👍. I added ...
logs.info('Creating public and private keys for Tessel authentication...');
// Generate SSH key
keygen({}, function(err, out) {
logs.info(err.stack);
if (err) {
return reject(err);
}
... Error returned:
|
Sorry for the late reply, I got stuck inside the spaghetti code and realized that this is the wrong way to solve this. We shouldn't depend on a third party library to ship up to date binaries when it comes to cryptography. Instead we should the version of openssl that Node.js provides for us, and that is exactly what I have done in tessel/t2-cli#209. Unfortunately this doesn't work on windows until nodejs/node-v0.x-archive#4051 gets resolved. If you have any experience with compiling it would be really cool if you could take a look at LinusU/node-generate-rsa-keypair to see if you can get it to build on windows. It could work by installing openssl locally and pointing out the path to it, but ideally we really would like to link against the openssl that node provides for us. That way we will always stay in sync with them. |
I should dig out my Windows computer for this... @LinusU I applaud your library! Would love to get this working. |
@LinusU I gave it a try but when I build in visual studio I get a lot of link errors.
Also running
|
Hmm, yes the link errors must be because of nodejs/node-v0.x-archive#4051. It makes it so that openssl dosen't export any functions at all, which makes the linker fail to find them... |
Hi,
So I have installed virtual box on my machine and have t2-cli installed. I type the following:
I then encounter the following error:
Any idea what might be causing?
Thanks
The text was updated successfully, but these errors were encountered: