Darren, James, etc.,
The Salmon Magic Envelopes spec says about the <me:sig> element:
"MUST have a keyhash
attribute containing the "keyhash" value for the signature.
"
status.net sends me Salmons like the following:
<?xml version="1.0" encoding="UTF-8"?>
<me:env xmlns:me="
http://salmon-protocol.org/ns/magic-env">
<me:data type="application/atom+xml">...</me:encoding>
<me:alg>RSA-SHA256</me:alg>
<me:sig>...</me:sig>
</me:env>
Cliqset sends me Salmons like the following:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<me:env xmlns:me="
http://salmon-protocol.org/ns/magic-env">
<me:data type="application/atom+xml">...</me:data>
<me:encoding>base64url</me:encoding>
<me:alg>RSA-SHA256</me:alg>
<me:sig>...</me:sig>
</me:env>
The only difference I see is the <me:encoding> Element, but neither Salmon has a keyhash attribute on the <me:sig>.
I'm trying to use Cliqset's Java code for verifying the Salmon:
http://code.google.com/p/java-salmon/It fails, and I think it fails because of the missing keyhash.
I get errors like the following:
01:31:02,890 DEBUG [com.cliqset.salmon.Salmon] Verifying signature with 1 keys
01:31:02,890 DEBUG [com.cliqset.salmon.Salmon] Key RSA.jniFOEiC-UNUPvz6Er60L4jhO72jVrfDBxvXqrSJEpirUhG9Pe4zY_QZSphi5am9-8vY16M08x3-ah3E68Ks31drrNoO1-mRhl_xaHphaRbngNgs9sZroZetirxCyYQwy3uez2hCjcUMrnf0z-QKYuamAcImsul3Om3kg9EI428=.AQAB with keyhash of u-IZPKUjyekAr7tnRGm9E0Y_iLhDeXO99KTBXt3g9sk= does not match signature keyhash of null
01:31:02,890 WARN [pds.endpoint.salmon.SalmonServlet] Cannot verify Salmon: Unable to verify the signature.
com.cliqset.salmon.SalmonException: Unable to verify the signature.
at com.cliqset.salmon.Salmon.verify(Salmon.java:111)
at com.cliqset.salmon.Salmon.verify(Salmon.java:73)
What to do?
Not verify the signatures for now?
Markus
--
blog:
http://danubechannel.comphone:
+43 664 3154848