-
Notifications
You must be signed in to change notification settings - Fork 49
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
underlyingCoreCryptoError while creating NIOSSHPrivateKey #60
Comments
Hi, thanks for your questions! Firstly, regarding loading a OpenSSH-formatted private key: this is currently a feature we don’t support. This is because the OpenSSH-formatted keys are encrypted using algorithms not available in CryptoKit/Swift Crypto, making it difficult for us to provide cross-platform support for decrypting the key. You can use the The minimum SDK level is iOS 13 because that is required for CryptoKit support. It is not possible to reduce that level, sadly. We are happy to add cocoapods support for this project, but it’s not a high priority for us personally, so we’ll need a community member to step up and prepare the podfiles. |
@Lukasa my fork does support RSA OpenSSH formatted keys. |
We are unlikely to merge RSA support directly to main. The better approach will be to define an appropriate extension interface that would allow @Joannis’ repo to plug in nicely. |
☝️ the solution mentioned by @Lukasa has been discussed thoroughly for a while now. It is the best and probably only solution. |
@AngeloAvv check out #62 for my draft. |
Hi,
I'm trying to setup a SSH tunnel in order to forward a remote port into my local device. I followed your PR #55 and I successfully implemented it into a brand new iOS project: I am able to forward a port using password authentication.
What I'm trying to do is performing a private key authentication. Due to the lack of the documentation, I'm going to ask you a few questions. Here's the code:
But I can't go further the
NIOSSHPrivateKey
constructor since the .init throws an error:Also, I have another question. Why the minimum SDK level is iOS13? Could it be downgraded or something? It's a huge device cut! Will this project be included in cocoapods? I'm asking this because I'm going to integrate this script into a native Flutter plugin and it seems like Flutter projects are not compatibile with SwiftPM.
Thank you for this amazing project by the way!
The text was updated successfully, but these errors were encountered: