The WebID Protocol consumer needs an x509 certificate with v3 extension "Subject Alternate Name". This attribute is used for the owner's Web ID. For testing purposes we used OpenSSL demo CA to generate such certificates. If you are not using the OpenSSL demo CA, you must first setup a self-signed CA; read OpenSSL documents on how to do this.

  1. Add the following line to the [usr_cert] section of the openssl.cnf file:

  2. Set the environment variable ALTNAME to the owner's Web ID, e.g.,

    export ALTNAME=URI:
  3. Make a self-signed certificate, e.g.,

    $ -newreq (follow the dialog)
    $ -sign
  4. When asked to commit the certificate, make sure you see several lines above, like:

     X509v3 Subject Alternative Name:
  5. If your browser wants a PKCS#12 bundle, you must make one:

    $ openssl pkcs12 -export -in newcert.pem -inkey newkey.pem -out mycert.p12
  6. Rename newcert.pem and newkey.pem, to mycert.pem and mykey.pem for example. The PEM format of the certificate will be needed below.