title: How do I retrieve an artifact checksum from Nexus using their rest api via curl?
body: <p>I am trying to verify the checksum of the artifacts I am downloading from Nexus. I can grab the artifact and download them and check their md5sum or sha1sum, but I need to check this against the actual sum from Nexus so I can verify they are correct.</p>
  
  <p>This is the command I'm using to grab files from Nexus:</p>
  
  <pre><code>curl -v -L -o /mylocation/artifact.war -u 'myuser:mypass' --get 'http://ournexus.com/service/local/artifact/maven/content?g=com.ours.stuff&amp;a=our-service-war&amp;v=LATEST&amp;r=snapshots&amp;p=war'
  </code></pre>
  
  <p>Via <a href="http://nexus.xwiki.org/nexus/nexus-indexer-lucene-plugin/default/docs/path__lucene_search.html" rel="noreferrer">http://nexus.xwiki.org/nexus/nexus-indexer-lucene-plugin/default/docs/path__lucene_search.html</a>, it would appear that I can also search for the sha1 sum, but when I do &amp;sha1 I get nothing extra or sha1=(sum), nothing is pulled up, even if I omit all the above options.</p>
  
  <p>This works, but it goes to a specific war, and we need the latest (obviously):</p>
  
  <pre><code>http://ournexus.com/service/local/repositories/snapshots/content/com/ours/stuff/ourapp/1.0.0-SNAPSHOT/ourapp-1.0.0-20140730.173704-88.war.sha1
  </code></pre>
  
  <p>Is this possible, am I on the right track?</p>