Giter Site home page Giter Site logo

gen-webid-cert's Introduction

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.org/njh/gen-webid-cert/

License

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

gen-webid-cert's People

Contributors

njh avatar olberger avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.