Claus,
Thanks for the nudge.
Are you thinking if we took something like the existing certFilename
option, which internally uses a FileKeyPairProvider, and created a new
option say certificatePath and used the ResourceHelper and
ResourceKeyPairProvider internally that would make it simpler for the
Hi
I logged a ticket to make this easier out of the box
https://issues.apache.org/jira/browse/CAMEL-6120
On Fri, Feb 15, 2013 at 9:33 PM, Scott Cranton wrote:
> I've created an example showing camel-ssh deployed in Karaf using
> classpath and file based public key security.
>
> https://github.co
I've created an example showing camel-ssh deployed in Karaf using
classpath and file based public key security.
https://github.com/scranton/example-security-camel-ssh
I'll try to clean it up shortly, and submit to camel either updating
existing camel-ssh example, or adding as a new example...
Th
Excellent! thanks for the QA ;-)
The camel-ssh doc clearly needs help, so any thoughts you have on how
to update based on your recent experience would be most appreciated...
On Fri, Feb 15, 2013 at 6:48 AM, Martin Stiborský
wrote:
> Woohoo, victory, thanks for the hint, Scott. ClassLoader was th
Woohoo, victory, thanks for the hint, Scott. ClassLoader was the magical
thing.
ResourceKeyPairProvider keyPairProvider = new ResourceKeyPairProvider(
new String[]{pathToTheKey}, null,
this.getClass().getClassLoader());
And camel-crypto, as new dependency, because org.bouncycastle
Have you tried setting the keyPairProvider to an instance of
org.apache.sshd.common.keyprovider.ResourceKeyPairProvider? That
should work better in OSGi, though I haven't tried it recently...
Re mulitple ids: you can add multiple component instances with
different ids (e.g. sshGit) and reference t
Often I found solution for a problem in few minutes after posting to
mailing list, so let's try the luck now :)
Currently I'm digging in the camel-ssh, because definitely there is problem
with referencing the key file from resources.
The very first thing I should do was enabling debug for camel-ss
One more weird thing, from the log file:
2013-02-15 08:58:22,582 | INFO | NioProcessor-21 | ClientSessionImpl
| 24 - org.apache.sshd.core - 0.8.0 | Session
n...@my-git.server.com/10.xx.xx.xx:22 closed
The "null"…I assume there should be username :)
On Fri, Feb 15, 2013 at 8:40 AM,
So, maybe the problem is really in the camel-ssh component, because, it's
possible to get the key from resources, like that:
from("cxfrs:bean:gitServer")
.routeId("GitRoutes")
.choice()
.when(header(CxfConstants.OPERATION_NAME).isEqualTo("getRepositories"))
Ok, so camel-ssh needs some love, to make it better…ok.
But without modifications in camel-ssh, I'm just not able to use it with my
SSH key, I tried like all possible combinations now.
SshComponent sshGitComponent = new SshComponent();
sshGitComponent.setHost("localhost");
On Thu, Feb 14, 2013 at 2:57 PM, Martin Stiborský
wrote:
> Still one problem…the unit test was fine, but now in OSGi environment,
> there are more troubles…
> Is there some trick how to get resource from a bundle? I can't get a
> reference to the key file stored in src/main/resources :(
>
I guess
Still one problem…the unit test was fine, but now in OSGi environment,
there are more troubles…
Is there some trick how to get resource from a bundle? I can't get a
reference to the key file stored in src/main/resources :(
On Thu, Feb 14, 2013 at 12:25 PM, Martin Stiborský <
martin.stibor...@gmai
I can try help there as well. I was looking for a chance to make my "first
camel commit" anyway :)
On Thu, Feb 14, 2013 at 12:00 PM, Scott Cranton wrote:
> Glad you figured it out. Yeah, the camel-ssh page does need some
> attention. Thanks for the feedback, and I look forward to seeing your
>
Glad you figured it out. Yeah, the camel-ssh page does need some
attention. Thanks for the feedback, and I look forward to seeing your
suggested updates to the doc.
The certFilename is just a shorthand for creating a
FileKeyPairProvider, which is identical to what the
SshComponentSecurityTest is d
As usually, problem solved few minutes after I posted this "call for help
message".
Really there was a problem with loading the private key from resources.
Now it works...my next message will be about updating the camel-ssh wiki :)
On Thu, Feb 14, 2013 at 10:37 AM, Martin Stiborský <
martin.stib
Hello guys,
I need to use camel-ssh in my route, also, I need authentication with SSH
keys to the remote server.
I can't figure out how to configure the SSH producer in Camel.
Now I started digging in camel-ssh source codes, but that is a long trip
for me right now :(
First of all, I'm not sure,
16 matches
Mail list logo