Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ease-dev] [EASE] Sign and Verify Script

Hi Christian,

just to make sure: signing or verification should *NOT* use any SSL certificate from the website we are accessing for the script. The certificate needs to be installed to the local keystore. How we get it there is an entirely different question.

In this case, my suggestion is,
  • At the time of signing script, we will take the certificate corresponding to the private key
  • We will attach this certificate with script. This will make file unreadable since certificates are in binary format
  • At side of verifier, we can separate script, signature and certificate and perform verification
  • We can store signature and result of verification using setPersistentProperty() of IFile
  • To store certificate, we can use State Location of plugin: see answer on Stack Overflow so that it is directly accessible with file
  • We will also store certificate in keystore for further reference

Are we having any sample scripts that are using scripts placed online? I want to study the behaviour and see how they are executed. Can you give an example on how online scripts are executed?

And, after execution, what happens of that file? Is it stored in workspace?

Thanks,


On Thu, May 19, 2016 at 2:12 AM, Christian Pontesegger <christian.pontesegger@xxxxxx> wrote:
Hi Varun,

just to make sure: signing or verification should *NOT* use any SSL certificate from the website we are accessing for the script. The certificate needs to be installed to the local keystore. How we get it there is an entirely different question.

A typical use case might be that a website delivering scripts might use the same certificate as it is used for its https SSL connection. As certificates are rather expensive, this might be a valid approach. For your task this is just a coincidence. What I intend to to with scripts hosted at eclipse is the following:

Eclipse build servers provide an internal web service that signs java class files. It packages everything nicely into the manifest of a jar file and sends it back to the requestor. Once your GSoC project is finished I will try to extend this service to also sign scripts. Therefore if my local java can verify eclipse class files, it will also verify EASE scripts hosted at eclipse.org. Then eclipse could be extended using scripts hosted in the web still providing full trust in what the scripts are doing.

--
Christian


On 05/14/2016 05:36 PM, Varun Raval wrote:
Hi Christian,

In the first meeting, I was not able to clearly specify several things I wanted to do related to certificate.

I was trying to say, if we are using SSL certificate directly from website to verify signature, then it would put a restriction on who can upload a script on a website. Since signing is done using private key and verification must be done using corresponding public key, and since only website owner will have access to private key, only he will be able to sign scripts which can be verified using SSL certificate of that website.
Also, what if website is not having any SSL certificate but signer is having certificate signed by root. There are several utilities available such as keytool that can make CSR(Certificate Signing Request) and can get user certificate signed by root. Such certificates are stored in keystore with the corresponding private key. So, user can have certificates signed by root in their keystore. We can access that certificate while we are signing script.

So, my proposal is, at time of signing script, we can get the certificate that is already signed by root if it is signed by root otherwise self-signed certificate. After getting this certificate, we can append certificate with signature, with script file. So, at verifier side, we can directly check whether the attached certificate is signed by root or not and ask user to act accordingly.

I hope I am making myself more clear now.

I am also working on how to add Preference Page and descriptors in eclipse. I am having several doubts in those things. vogella site contains description of preference pages for Eclipse 3.x. And we are probably targeting for 4.x. So I am having several problems in saving preferences. I am posting it shortly.

Thanking you,
--
Varun Raval

_______________________________________________
ease-dev mailing list
ease-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ease-dev


_______________________________________________
ease-dev mailing list
ease-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ease-dev


Back to the top