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,