<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi guys,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I need to configure a shibboleth SP with an IDP which requires mTLS for the SAML2 artifact back-channel. The challenge is that the IDP requires different certificates to be used for encryption, signing and the mTLS of the back-channel.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I configure the RelyingParty#Name with the entity-id of the IDP it seems shibboleth is using the mtls-crt (client certificate) not only for the mTLS of the back-channel but also already in the AuthnRequest:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><RelyingParty Name="some-idp" keyName="client-cert"/><o:p></o:p></p>
<p class="MsoNormal"><CredentialResolver type="Chaining"><o:p></o:p></p>
<p class="MsoNormal">  <CredentialResolver type="File" use="signing" certificate="sp-signing-cert.pem" key="sp-signing-key.pem"/><o:p></o:p></p>
<p class="MsoNormal">  <CredentialResolver type="File" use="encryption" certificate="sp-encrypt-cert.pem" key="sp-encrypt-key.pem"/><o:p></o:p></p>
<p class="MsoNormal">  <CredentialResolver type="File" certificate="mtls-crt.pem" key="mtls-key.pem" keyName="client-cert"/><o:p></o:p></p>
<p class="MsoNormal"></CredentialResolver><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I configure the RelyingParty#Name with the domain of the back-channel (ex. mtls.example.org) it seems the client-certificate is not used at all.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><RelyingParty Name="mtls.example.org" keyName="client-cert"/><o:p></o:p></p>
<p class="MsoNormal"><CredentialResolver type="Chaining"><o:p></o:p></p>
<p class="MsoNormal">  <CredentialResolver type="File" use="signing" certificate="sp-signing-cert.pem" key="sp-signing-key.pem"/><o:p></o:p></p>
<p class="MsoNormal">  <CredentialResolver type="File" use="encryption" certificate="sp-encrypt-cert.pem" key="sp-encrypt-key.pem"/><o:p></o:p></p>
<p class="MsoNormal">  <CredentialResolver type="File" certificate="mtls-crt.pem" key="mtls-key.pem" keyName="client-cert"/><o:p></o:p></p>
<p class="MsoNormal"></CredentialResolver><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I also tried a different syntax like putting the domain name in the keyName, but it still doesn't get used:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><RelyingParty keyName="mtls.example.org"/><o:p></o:p></p>
<p class="MsoNormal"><CredentialResolver type="Chaining"><o:p></o:p></p>
<p class="MsoNormal">  <CredentialResolver type="File" use="signing" certificate="sp-signing-cert.pem" key="sp-signing-key.pem"/><o:p></o:p></p>
<p class="MsoNormal">  <CredentialResolver type="File" use="encryption" certificate="sp-encrypt-cert.pem" key="sp-encrypt-key.pem"/><o:p></o:p></p>
<p class="MsoNormal">  <CredentialResolver type="File" certificate="mtls-crt.pem" key="mtls-key.pem" keyName="mtls.example.org"/><o:p></o:p></p>
<p class="MsoNormal"></CredentialResolver><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">How can I make shibboleth to use the client-certificate only for the mTLS of the back-channel and the other two certificates for signing and encryption? Thank you very much in advance for any help.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Corin<o:p></o:p></p>
</div>
</body>
</html>