Skip to main content

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

Hi,

This week I worked on certificate verification and pushed that on gerrit. See [1].
Specifically, I worked on validating certificate chain and how to check revocation status of certificates in certificate chain. The code that I submitted, performs two types of revocation status checks.
  1. CRL (Certification Revocation List)
  2. OCSP (Open Certificate Status Protocol)
Revocation status checks are used to know whether certificate is revoked after getting signed by root CA. Both are necessary to check and are recommended by Oracle. If any one of the links are not available with certificate, certificate would be considered invalid or not trusted. For the list of trusted certificates, I am using truststore provided with JAVA as default truststore.
For a try, I made a CSR (Certificate Signing Request), made it signed using Thawte Trial Certificate and played with VerifySignature class using this signed cerificate.

I am also working on context menu and UI for performing signature.

Option for performing signature will be there in context menu of Package Explorer. I wanted to know how to provide option for performing signature only for Script files. We can use visibleWhen clause of command tag, but what should be the parameters? I have done following which simply shows Perform Signature as context menu on any file.

   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            allPopups="false"
            locationURI="popup:org.eclipse.ui.popup.any">
         <command
               commandId="com.varun.ease.sign.ContextMenu"
               label="Perform Signature"
               style="push">
              
                  <visibleWhen
                     checkEnabled="false">
                     <with
                           variable="activeMenuSelection">
                           <iterate ifEmpty="false">
                           <adapt
                                 type="org.eclipse.core.resources.IFile">
                           </adapt>
                           </iterate>
                     </with>
                  </visibleWhen>
         </command>
      </menuContribution>
   </extension>


[1]: https://git.eclipse.org/r/#/c/75831/

Thanks for the help,
--
Varun Raval

Back to the top