Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Custom key/trust stores
Custom key/trust stores [message #1062372] Fri, 07 June 2013 12:39 Go to next message
Simon Goodall is currently offline Simon GoodallFriend
Messages: 11
Registered: July 2009
Junior Member
Hi,

I've been trying to use SSL client authentication against a p2
repository on a remote server. I have managed to get this working by
installing the relevant certificates into a local .jks file and I have
told eclipse to use it by setting the javax.net.ssl.keyStore and
javax.net.ssl.trustStore properties in my eclipse.ini.

Now I would like to translate this to an RCP application setting. My
current approach is to include the .jks file with a feature. I have a
p2.inf file to call the setProgramProperty touchpoint to set the correct
path to the feature file. This works well when I build my product.
However when I run my product from within eclipse, this will not be set.

Is there a way to do this with p2?

If I set the system property in the code - e.g. either in my
IApplication, will p2 pick it up or is it too late in the startup process?

Is it possible to programmatically tell p2 which truststore to use
rather than use a system property?


Thanks

Simon
Re: Custom key/trust stores [message #1065731 is a reply to message #1062372] Thu, 27 June 2013 09:45 Go to previous message
Simon Goodall is currently offline Simon GoodallFriend
Messages: 11
Registered: July 2009
Junior Member
For the record I now programatically set the system properties in the
IApplication object.

Simon

On 07/06/2013 13:39, Simon Goodall wrote:
> Hi,
>
> I've been trying to use SSL client authentication against a p2
> repository on a remote server. I have managed to get this working by
> installing the relevant certificates into a local .jks file and I have
> told eclipse to use it by setting the javax.net.ssl.keyStore and
> javax.net.ssl.trustStore properties in my eclipse.ini.
>
> Now I would like to translate this to an RCP application setting. My
> current approach is to include the .jks file with a feature. I have a
> p2.inf file to call the setProgramProperty touchpoint to set the correct
> path to the feature file. This works well when I build my product.
> However when I run my product from within eclipse, this will not be set.
>
> Is there a way to do this with p2?
>
> If I set the system property in the code - e.g. either in my
> IApplication, will p2 pick it up or is it too late in the startup process?
>
> Is it possible to programmatically tell p2 which truststore to use
> rather than use a system property?
>
>
> Thanks
>
> Simon
Previous Topic:Silent Update the next time the application is Restarted
Next Topic:Is my p2.inf usage correct?
Goto Forum:
  


Current Time: Mon Nov 24 09:27:48 GMT 2014

Powered by FUDForum. Page generated in 0.03415 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software