Private key parsing with regex #1800
Unanswered
enricobenedos
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
What does the key look like? E.g. what is the first line, or why isn't it matching the regex? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to solve an
Invalid private key file.exception thrown on a docker container environment after the private key variable injection with Azure DevOps pipeline.That's the flow:
At runtime you obtain an inline private key that unfortunately doesn't match the regex pattern at
SSH.NET/src/Renci.SshNet/PrivateKeyFile.cs
Line 113 in 5b8382d
but it is a valid key, in fact in other projects we use the same pipeline pattern, so the same inline key, with native library code and it works
Do you know a workaround about that? Is it possible to improve this feature to support inline keys?
Beta Was this translation helpful? Give feedback.
All reactions