--- opensaml2-2.3.orig/saml/signature/ContentReference.cpp
+++ opensaml2-2.3/saml/signature/ContentReference.cpp
@@ -46,6 +46,7 @@
 void ContentReference::createReferences(DSIGSignature* sig)
 {
     DSIGReference* ref=NULL;
+    sig->setIdByAttributeName(false);
     const XMLCh* id=m_signableObject.getXMLID();
     if (!id || !*id)
         ref=sig->createReference(&chNull, m_digest ? m_digest : DSIGConstants::s_unicodeStrURISHA1);  // whole doc reference
