|Re: [tycho-user] Using self signed certificates for plugins: the certificate is not stored?|
There is a certificate store of trusted certificates from certificate authorities. When you purchase a code signing certificate, the issuer will verify that you are who you say your and sign your certificate with their signature, establishing a chain of trust: https://en.wikipedia.org/wiki/Chain_of_trust. If an application encounters a certificate that is not in its certificate store and does not have a chain of trust based on one of the certificates in the certificate store, then you'll get a warning. You can choose to ignore that warning.
To prevent the user from getting a warning when he encounters that same (untrusted) certificate again, the user has to add the certificate to his certificate store. In some cases, like with your web browser, the application may give the user the ability to add the untrusted certificate to a store of trusted certificates. If the app doesn't provide that option, the user will need to perform those steps separately, using OS or application-specific tools.
I don't remember whether Eclipse is just checking against the JVM's cacerts certificate store or whether it eventually goes back to the operating system's certificate store somehow. I believe that it's *only* checking the JVM's certificate store. If that's true, then you just need to follow instructions for importing certificates to the JVM. For example,http://stackoverflow.com/questions/11617210/how-to-properly-import-a-selfsigned-certificate-into-java-keystore-that-is-avail
Thing is, I'd expect once the user accepts the certificate as valid, Eclipse wouldn't ask again in future installations signed with the same certificate. But it does. I've made a new release of the plugins and the installer asks again if I trust the certificate.Perhaps I should be asking this in the "Eclipse Platform" forum, as it's not directly Tycho related (I think), but I thought to give it a try:I've modified the Tycho build script to sign my plugin jars. I'm using a self-signed certificate. When I try to install the plugins, the Eclipse installer asks me, the user, if I want to trust that certificate for the installation. So far so good.
This seems to me to defeat the whole point, since for the user to trust that the new plugin release is from the same source as the previous one, they would have to open the details of the certificate, and manually compare the public key of the previous one to the new one and see that it matches. Obviously this is not practical, they are not gonna check. As as such theoretically someone could create a new self-signed certificate with the same name as mine, and use that to forge fake plugins.
Am I missing something here? Admittedly my knowledge of security stuff is weak. 😓
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
Back to the top