Archive for October, 2009
-
Configuring Shibboleth SP 2 on CentOS to the ukfederation w/ Godaddy certs
Part 2. Shibboleth Config (6 hours)
cd /etc/shibboleth wget http://metadata.ukfederation.org.uk/ukfederation.pem wget http://metadata.ukfederation.org.uk/ukfederation-metadata.xml
Edit shibboleth2.xml
Replace all instances of sp.example.org with your Entity ID ie sp.yourdomain.comSearch for ApplicationDefaults
Add homeURL=”https://sp.domainz.com/ahomeurl” under entityID – homeURL is the first url of the resource if none is specified.
Search for <sessions
Before the default example (Reading Default example directs to a speci… ” Insert:
<SessionInitiator isDefault="true" id="UKFederation" Location="/WAYF/UKFederation" type="WAYF" defaultACSIndex="5" URL="https://wayf.ukfederation.org.uk/WAYF" />
Search for exportLocation
Under exportLocation replace http://localhost with https://localhost
Replace all instances of root@localhost with the technical support email address
Search for MetadataProvider
This bit gets messy so pay close attention…..
<MetadataProvider type="XML" uri="http://metadata.ukfederation.org.uk/ukfederation-metadata.xml" backingFilePath="/etc/shibboleth/ukfederation-metadata.xml" reloadInterval="14400"> <MetadataFilter type="RequireValidUntil" maxValidityInterval="2592000"/> <SignatureMetadataFilter certificate="ukfederation.pem"/> </MetadataProvider>
Search for the line Delete it or comment it out.
Directly below it paste the following:
/etc/shibboleth/sp.key /etc/shibboleth/sp.crt
Don’t forget to replace yourpassword with your key password if you have set one!
For now we are done in shibboleth2.xml
Run ./keygen.sh to generate your new key pair
mv sp-key.pem sp.key mv sp-cert.pem sp.crt
Now we must configure Apache for shibboleth
Installing Shibboleth SP 2 on CentOS to the ukfederation w/ Godaddy certs
Internet 2 give some “creative” documentation for this procedure so I thought I’d write some that are easier to follow:
- Download CentOS Netimage boot CD from http://centos.org
- Receive approval from the UK federation for your service.
- Purchase a cheep Godaddy Cert or have one ready for your service. Be aware that you will be getting 1 SSL cert to secure your resource and another SSL cert (a self signed one) to talk to the UK federation. Do not get these certificates confused!
- Create the appropriate DNS records to point to the IP of your resource and the IP of your SP. IE shib.yourdomain.com (your resource) should resolve to the IP of the apache server and sp.yourdomain.com (service provider) should resolve to the same IP.
Comment out SELINUX=enforcingType in SELINUX=disabled
CentOS Netinstall 5.4 ISO installation
Iv’e had to install CentOS 10+ times today and I wanted to quickly document my procedure:
- Grab http://mirror.sov.uk.goscomb.net/centos/5.4/isos/i386/CentOS-5.4-i386-netinstall.iso & boot from it however you/I want.
- Select HTTP install then for server type: mirror.centos.org
- For path type: centos/5.4/os/i386
Is my school closed?
Schools worldwide have a free service where they can register any closure information. Authorities also use this service if their is regional closures due to poor weather or illness.
libcurl library on a shibboleth 2.2+ SP install on debian
The easiest way to install the libcurl library on debian is to run this command: