All Projects → njh → gen-webid-cert

njh / gen-webid-cert

Licence: Unlicense license
Shell script to generate a Self-signed Certificate for use with WebID

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to gen-webid-cert

LinkedDataHub
The Knowledge Graph notebook. Apache license.
Stars: ✭ 150 (+971.43%)
Mutual labels:  webid
linkedresearch.org
🌐 linkedresearch.org
Stars: ✭ 32 (+128.57%)
Mutual labels:  webid
semicon
A collection of icons for the Semantic Web and Linked Open Data world.
Stars: ✭ 20 (+42.86%)
Mutual labels:  foaf

gen-webid-cert.sh

Build Status

gen-webid-cert.sh is a shell script to create a self-signed certificate for use with WebID. A WebID can be used to login to a website using a client certificate, along with a FOAF document providing information about you.

It works by creating a self-signed client certificate, where the Subject Alternative Name (SAN) in the certificate points to the URI of yourself in a FOAF document. The FOAF document the references the Public Key of your certificate, allowing you to prove that you are the person described in the FOAF document.

The script requires:

  • A bourne compatible shell, such as Bash
  • The openssl command line tool

When you run the shell script it asks you for:

  • Your Name
  • Your WebID (a URI that can be de-referenced in a FOAF document)

It then outputs:

  • webid.pem - a PEM encoded file containing your private key and certificate
  • webid.p12 (optional) - a P12 encoded file, for loading into Firefox
  • A snippet of a RDF/XML encoded FOAF document to STDOUT

If running on Mac OS, it will offer to add the certificate to your Keychain.

Testing

A shell script called test.sh is provided to ensure that the main script is working on your system.

This script is run by Travis: https://travis-ci.com/njh/gen-webid-cert/

License

gen-webid-cert.sh is licensed using The Unlicense.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].