Friday, June 5, 2009

Setting up EDUROAM network connection (at OSU.cz) on Ubuntu 9.04

This is how I configured the EDUROAM network connection on my Ubuntu 9.04. My home university is the University of Ostrava (OSU).
  1. First of all, there was a problem with certificates. I have downloaded University's CA Certificates (osu-ca.pem, cesnet-ca.pem) from the OSU's website. We are going to install the certificates as trustworthy.
  2. Determine the directory where all the certificates are stored:
    openssl version -d
  3. Create an executable script file CreateSymLinks:
    #!/bin/bash
    for CERTFILE in $*; do
    # make sure file exists and is a valid cert
    test -f "$CERTFILE" || continue
    HASH=$(openssl x509 -noout -hash -in "$CERTFILE")
    test -n "$HASH" || continue

    # use lowest available iterator for symlink
    for ITER in 0 1 2 3 4 5 6 7 8 9; do
    test -f "${HASH}.${ITER}" && continue
    ln -s "$CERTFILE" "${HASH}.${ITER}"
    test -L "${HASH}.${ITER}" && break
    done
    done
  4. Run
    ./CreateSymLinks *.pem
    This will create symbolic links to the certificate files.
  5. Copy all *.pem files together with all created symbolic links to the path obtained in step 2.
  6. Setup EDUROAM connection in Network Manager: WPA/WPA2 Enterprise, Tunelled TLS (TTLS), osu-ca.pem as CA certificate, MSCHAP, your identity (my was XXX@osu.cz), password.
The connection should be established and work properly.

No comments:

Post a Comment