<div dir="ltr">Oops, I failed to hide my host name thoroughly..  :P<div><br></div><div>For consistence, the statement in the certificate should be:</div><div><div style="font-size:12.8px"><div><br></div><div>X509v3 extensions:</div><div>            X509v3 Subject Alternative Name:</div><div>                DNS:<a href="http://my.host.name">my.host.name</a>, URI:<a href="https://my.host.name/shibboleth" target="_blank">https://my.host.name/shibboleth</a></div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 17, 2016 at 6:09 PM, joller lee <span dir="ltr"><<a href="mailto:joller.lee@gmail.com" target="_blank">joller.lee@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I've deployed an SP without any problem for quite a while.<br></div>Now I am trying to configure a "logical SP's" on the same physical SP installation, <div>with a new vhost that is only different on the port number.</div><div><div>The metadata for the new logical SP is created by simply copying the original one</div><div>and modifying the entityID and endpoints, which means the same key pair is used.</div><div>Also in the ApplicationOverride setting, the same pair of key/cert files are used.</div><div>(In fact, I believe CredentialResolver can be ignored here, thanks to inheritance)</div><div><br></div><div>Their entityID's are as follow:</div><div><br></div><div>    the original: <a href="https://my.host.name/shibboleth" target="_blank">https://my.host.name/shibboleth</a><br></div><div>    the new one: <a href="https://my.host.name/shibboleth/app1" target="_blank">https://my.host.name/shibboleth/app1</a><br></div><div><br></div><div>The original SP still works well.</div><div>But with the new one, I encounter a problem:</div><div>After a valid authentication process, the IdP sends back the assertion,</div><div>but the new logical SP fails to decrypt it, with the following error message:</div><div><br></div><div>    failed to decrypt assertion: Unable to locate an encrypted key.<br></div><div><br></div><div>Just in case, I've tried analyzing the certificate, and there is a statement:</div><div><br></div><div><div>X509v3 extensions:</div><div>            X509v3 Subject Alternative Name:</div><div>                DNS:<a href="http://zimbra.ntin.edu.tw" target="_blank">zimbra.ntin.edu.tw</a>, URI:<a href="https://my.host.name/shibboleth" target="_blank">https://my.host.name/shibboleth</a></div></div><div><br></div><div>Has anyone encountered the same problem before?</div><div><br></div><div><div><br></div></div></div></div>
</blockquote></div><br></div>