PVWA - How to configure SAML with Signed Request.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
PAM Self-Hosted Articles
3 min read
L0 Member
No ratings
When integrating Signed Request SAML authentication onto PVWA, according to the generic Signed Request SAML integration instructions within the Idira documentation, there is no detail information on the requirement for the certificate.

Steps

Prerequisites:

This is supported only in the new SAML method (UseNewSAMLSolution=Yes set in web.config).
 

Step by step:

  1. Create a self-signed certificate on your PVWA machine using the IIS manager
  2. Export the certificate with the private key (you will get a .pfx file) and configure the saml.config file:
    1. When exporting certificate from IIS manager - select "with private key" option. note that the wizard will force you to enter a password for the certificate.
    2. Add the following XML to the saml.config file within the ServiceProvider element:
      <LocalCertificates>
      <Certificate FileName="<the exported certificate path>" Password="<the password you set for the certificate>" />
      </LocalCertificates>
    3. Add the following attribute to the PartnerIdentityProvider element
      SignAuthnRequest="true"
  1. Export the certificate without the private key (you will get a .cer file)
    1. When exporting certificate from IIS manager - select "without private key" option
  2. Copy the exported certificate to the IDP's machine (very important: copy the certificate without the private key!)
  3. In the IDP's machine add the copied certificate to the IDP's relying party trusts properties
    (i.e. for ADFS you right click the relying party trusts and select Signature tab and simply add the copied certificate)
 

Additional guidelines on supported Certificate requirements:

An X.509 certificate and associated private key are required if SAML messages sent by your service provider are to be signed or SAML assertions are to be encrypted.
Neither the private key file nor its password should be shared with third parties
The public key should be shared with IdP (Identity Provider).
 
A certificate and its associated private key may be stored on the file system as a .PFX file.
These are the certificate file formats supported by Windows and the .NET framework.
A local provider certificate stored on the file system may be specified in the SAML configuration.
 
<LocalCertificates>
<Certificate FileName="Certificates\sp.pfx" Password="password"/>
</LocalCertificates>
 
A local provider certificate file always will be a .PFX as it must include the private key. The password protects the .PFX file.
 
PKCS#12 Format Public-Key Cryptography Standards (PKCS) #12 stores X.509 certificates and associated private keys as binary.
Normally the content is protected by a password.
Standard file extensions are .pfx and, less commonly on Windows, .p12.
Certificate File Permissions The account under which the application is running must have read permission to the certificate file.
For a .PFX file, the account also must have read permission to the location where the private key is stored.
 

Rate this article: