    <bean id="shibboleth.idp.ext.OpensamlCustomSecurityConfig"
          class="edu.internet2.middleware.shibboleth.idp.ext.securityconfig.OpensamlCustomSecurityConfigBean"
          depends-on="shibboleth.OpensamlConfig">

        <property name="keyInfoGeneratorFactories">
            <list>
                <bean class="org.opensaml.xml.security.x509.X509KeyInfoGeneratorFactory">
                        <property name="emitEntityCertificate" value="true" />
                        <property name="emitEntityCertificateChain" value="true" />
                </bean>
            </list>
        </property>

    </bean>
