You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Note: This document assumes access to the AMIT definitive software library Private area. If you do not have access to this AFS locker, then you will be able to create SSL certs with these instructions, but not store them in the AMIT library.

Note: RadminD should create the SSL directories and install the CA on the host to be configured.

  1. On a machine with AFS installed and running, go to the AMIT DSL directory. Alternatively, log into athena.dialup.mit.edu first.
    cd /afs/athena.mit.edu/project/amit-dsl
    cd Private/ssl-certs
    
  2. Set the temporary hostname variable to be the hostname of the system you are creating certs for.
    hostname=[HOSTNAME]
    
  3. Create a directory for your host machine.
    mkdir ${hostname}
    cd ${hostname}
    
  4. Generate rsa key
    • This simply generates some random stuff:
      ps > /tmp/foo
      ps -elf >> /tmp/foo
      cd /var/lib/ssl
      openssl genrsa -rand /tmp/foo 1024 > /afs/athena.mit.edu/project/amit-dsl/Private/ssl-certs/${hostname}/host-key.pem
      
  5. Generate request for a certificate
    cd /var/lib/ssl/
    openssl req -key /afs/athena.mit.edu/project/amit-dsl/Private/ssl-certs/${hostname}/host-key.pem -new \
       > /afs/athena.mit.edu/project/amit-dsl/Private/ssl-certs/${hostname}/host-req.pem
    
    #*send the file /afs/athena.mit.edu/project/amit-dsl/Private/ssl-certs/$
    Unknown macro: {hostname}

    /host-req.pem to mitcert@mit.edu,

    Please be aware, the organization (O) is:
    Massachusetts Institute of Technology
    and the common name (CN) is the name of the server or
    service, including the domain name (.mit.edu).  Also, some servers, such
    as Thalia servers, can represent an entire subdomain.  These servers
    will need certificates issued with a wildcard in the domain name, such
    as \*.isda-thalia-1.mit.edu.
    
    Remember, if the server is a Thalia server, it will need a wildcard
    certificate and DNS record for *.`hostname`, and if it is doing any type of
    authentication, it will need a joint client/server certificate to be able
    to connect to the Shibboleth server (and have end users connect to it as
    well).
    
    1. To generate a self signed temporary certificate, add the x509 and nodes options to the openssl command line.
      
      
      cd /afs/athena.mit.edu/project/amit-dsl/Private/ssl-certs
      openssl req -key /afs/athena.mit.edu/project/amit-dsl/Private/ssl-certs/$
    /host-key.pem -new \
    -x509 -nodes > /afs/athena.mit.edu/project/amit-dsl/Private/ssl-certs/$
    Unknown macro: {hostname}

    /host-temp-cert.pem

    
    
    1. When you receive a certificate from MIT Certificates, save it as /afs/athena.mit.edu/project/amit-dsl/Private/ssl-certs/$
    /host-cert.pem
  6. Commands to view cert information:
    • to look at a request:
      openssl req -in /afs/athena.mit.edu/project/amit-dsl/Private/ssl-certs/${hostname}/host-req.pem -text
      
    • to look at the private key:
      openssl rsa -in /afs/athena.mit.edu/project/amit-dsl/Private/ssl-certs/${hostname}/host-key.pem -text
      
    • to look at the server certificate:
      openssl x509 -in /afs/athena.mit.edu/project/amit-dsl/Private/ssl-certs/${hostname}/host-cert.pem -text
      
  • No labels