Giter Site home page Giter Site logo

certify's Introduction

Generate Certificates

Generate certificates, and optionally sign using a self-signed certificate.

Install

This program requires Ruby in your system.

Install the required libraries

bundle install

Configure

Template

Review the template.jpg file in the images folder. Modify the template.jpg file using an image editor, if required.

Please ensure to save the template.jpg at least 300DPI resolution to enable printing. If you modify the file, please select the correct DPI while saving.

Also, make sure that the proportions of the template matches with the configured page size.

Data

The student data is stored using the following convention. The paths and prefixes may be tweaked using config.yml, however it is recommended not to.

data/grades/{grade}/sections/{section}.csv

The signatory details can be updated through config.yml

The certificate issued for, and issued date are also updated through config.yml

Run

Run this program using the following command, in the terminal

bundle exec generate.rb

If the output is ruby: command not found, you may not have Ruby installed in your system.

Sign

To sign and verify the certificates using a self-signed certificate, perform the following steps.

Generate Self-signed Certificate

Run the following commands to generate a self-signed certificate for digital signature. Once generated, please store the private key and certificate securely. The certificate is required for verification, later.

RUBYOPT=-W:no-deprecated bundle exec utils/keys.rb

Digitally Sign PDF Files

To sign the PDF files run the following commands.

RUBYOPT=-W:no-deprecated bundle exec utils/sign.rb

Verify the Digitally Signed PDFs

RUBYOPT=-W:no-deprecated bundle exec utils/verify.rb certificate.pdf

certify's People

Contributors

geordee avatar

Watchers

 avatar  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.