ssl - Maven verify signatures of downloaded pom/jar files -
i trying find if there ssl enabled central repository there isn't. noticed there signatures every jar , pom file in maven central repository. @ least i'd check signatures of maven downloaded files (pom/jar).
the example http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/:
ant-1.8.2.jar ant-1.8.2.jar.asc ant-1.8.2.jar.asc.md5 ant-1.8.2.jar.asc.sha1 ant-1.8.2.jar.md5 ant-1.8.2.jar.sha1 ant-1.8.2.pom ant-1.8.2.pom.asc ant-1.8.2.pom.asc.md5 ant-1.8.2.pom.asc.sha1 ant-1.8.2.pom.md5 ant-1.8.2.pom.sha1 i realize i'll have import public keys every repository , i'm fine that. guess public keys maven central here https://svn.apache.org/repos/asf/maven/project/keys.
there plenty of tutorials on web on how sign maven. didn't find information on how force maven (2 or 3) verify signatures of downloaded jar/pom files. possible?
(nexus professional not option)
thank help.
now, people seem realize real security problem (as described in this blog-post (the blog seems down, here archived version of blog)), there plugin verifying pgp signatures. can verify signatures dependencies of project following command:
mvn com.github.s4u.plugins:pgpverify-maven-plugin:check of course, 100% sure plugin not malicious itself, have download , verify source plugin maven central, build maven, , execute it. (and should done dependencies , plugins needed build, recursively.)
or use maven 3.2.3 or above (with clean repository), uses ssl downloading artefacts. man-in-the-middle attacks impossible , @ least artefacts on maven central.
see also:
Comments
Post a Comment