This guide describes the installation & configuration of a
Shibboleth Sevice Provider (SP) 2.3.1
on a Windows with IIS.
It covers the installation of the Shibboleth Webserver authentication module as
well as the Shibboleth daemon and its configuration for the SWITCHaai
federation.
For further information about Shibboleth Sevice Provider, take a look at the
references.
Assumption
Before starting to install Shibboleth Sevice Provider,
assure that the following prerequisites are met:
A proper certificate
For decrypting the assertions and/or provide an SSL connection to the
resource, a certificate is required.
Please refer to
http://www.switch.ch/aai/certificates/ for further information about
certificates.
You can use the same certificate for the SSL webserver connection and for Shibboleth
Service Provider.
It is also possible to create a self-signed certificate for communciation usage between the Shibboleth components.
If you need that opportunity, please follow the steps described below.
Before starting to build and configure the Shibboleth Sevice Provider, assure that the following prerequisites are met:
IIS 6
The server has to be configured as a Web Server by selecting the "Internet Information Service (IIS)" option in the Windows Component selection tool.
Assure that IIS 6 is properly configured and working.
Service Packs
It is strongly recommended to have an up-to-date system before starting the installation.
NTP
The Windows Time service (w32time) has to be activated and well configured.
Servers running Shibboleth should have their system time synchronized in order to avoid clock-skews.
Choose C:\opt\shibboleth-sp\ as destination folder
Check 'Install Shibd daemon' and choose 1600 as port number
Check 'Install ISAPI module' and choose .sso as file extension
Finish the installation
Restart your computer
3.2 Webserver Configuration
After rebooting, IIS should be configured for basic support (if you asked it to do so).
If you have problems, need to manually configure it or want to verify what happened, the IIS steps are described here.
For an instant test, if the Shibboleth deamon and ISAPI Filter are working access with your browser to
https://localhost/Shibboleth.sso/Status.
If you get an XML document it is fine.
3.3 Prepare Logging
Check C:\opt\shibboleth-sp\var\log\shibboleth\, if the logfiles are created. If not check the permissions.
For creating a self signed certificate follow these steps:
cd C:\opt\shibboleth-sp\etc\shibboleth\
C:\opt\shibboleth-sp\etc\shibboleth\keygen.bat -h sp.example.org -y 3 -e https://sp.example.org/shibboleth
4.2 Logging
The Shibboleth Apache module log is configured by C:\opt\shibboleth-sp\etc\shibboleth\native.logger
The Shibboleth daemon and the transaction log are configured by C:\opt\shibboleth-sp\etc\shibboleth\shibd.logger
For testing purposes, there is the status URL https://sp.example.org/Shibboleth.sso/Status,
which returns information about the setup as an XML response.
For accessing the status URL, the accessing host has to be enabled in C:\opt\shibboleth-sp\etc\shibboleth\shibboleth2.xml:
In order to activate your Service Provider within the federation you need to register it with the Resource Registry.
The purpose of the Resource Registry is to have an up-to date list of all Identity Providers and Service Providers in the SWITCHaai Federation.
(See the information about the Resource Registry).
Log in via SWITCHaai|AAITest. Use your organisation account to get access.
In case your organisation doesn't operate yet an AAI Identity Provider,
please ask aai@switch.ch for an account.
Click on the tab Resource Administration
Click on Add a Resource Description
Click on Run Shibboleth 2.x assistant
Fill out all forms that are marked incomplete. Some forms do not need to be filled out completely.
After you have completed all sections (they should all be marked as 'optional' or 'ok'),
click on Submit for Approval.
A Resource Registration Authority administrator then has to approve the Resource Description in order to make it active.
6. Troubleshooting
6.1 Logfiles
If some of the above tests are not successful, we recommend to do the following:
Scan the logfiles. They can be found at the path set in the property log4j.appender.native_log.fileName
defined in C:\opt\shibboleth-sp\etc\shibboleth\native.logger and the path log4j.appender.shibd_log.fileName
set in
C:\opt\shibboleth-sp\etc\shibboleth\shibd.logger for WARN and ERROR messages.
Most probably C:\opt\shibboleth-sp\var\log\shibboleth\native.log and C:\opt\shibboleth-sp\var\log\shibboleth\shibd.log.
Set the log level (log4j.rootCategory) of C:\opt\shibboleth-sp\etc\shibboleth\native.logger and
C:\opt\shibboleth-sp\etc\shibboleth\shibd.logger to DEBUG.
Once the problem is solved, don't forget to set it back to WARN or INFO to prevent your log files from growing too big.
6.2 Common problems
Following is a list of common problems that you may check:
No log files are written
Check the permissions of the log files or the path for the log files set in C:\opt\shibboleth-sp\etc\shibboleth\native.logger
or C:\opt\shibboleth-sp\etc\shibboleth\shibd.logger .
No attributes/Certificates problems
Check the Apache SSL certificate with the https://tools.switch.ch/certchaintest/
to make sure the full certificate chain up to the root CA certificate is attached to your certificate.
Some good practices according Service Provider productionalization:
BEST CURRENT PRACTICES for operating a SWITCHaai Service Provider
The document describes best current practices for operating a Service Provider (SP) within the SWITCHaai federation in production use. It is meant to cover service management and operational related aspects as well as the technical infrastructure for successfully operating an SP.
Subscribe to the SWITCHaai mailing lists
Important information about the SWITCHaai federation are distributed
by the AAI-Operations mailing list.
Therefore the administrator of the Service Provider should
subscribe to the list.
News and announcements are sent by the
AAI-Announce mailing list.
You might subscribe to it as well.
Customizing error pages
The error pages and messages can be configured in
C:\opt\shibboleth-sp\etc\shibboleth\shibboleth2.xml: