Giter Site home page Giter Site logo

grunt-cert's Introduction

grunt-cert

Generates private keys and certificates in a Grunt task.

Requirements

  • openssl installed
  • grunt installed

Example Grunt configuration

module.exports = function(grunt) {
    grunt.initConfig({
        cert: {
            keys: {
                mode: {
                    type: 'private-public-keys',
                    keySize: 4096
                },
                locations: {
                    privateKey: './private-key.pem',
                    publicKey: './public-key.pem'
                }
            },
            cert: {
                encryptKey: true,
                mode: {
                    type: 'cert',
                    keySize: 4096
                },
                locations: {
                    key: './key.key',
                    cert: './cert.cert'
                },
                certData: {
                    countryName: 'HU',
                    state: 'Csongrad',
                    city: 'Szeged',
                    organizationName: 'FooBar Ltd',
                    organizationUnitName: 'Development',
                    commonName: 'FooBar CA',
                    emailAddress: '[email protected]'
                }
            }
        }
    });

    grunt.loadNpmTasks('.grunt-cert');
};

Contributors welcome!

grunt-cert's People

Contributors

dios-david avatar ephracis avatar

Watchers

 avatar  avatar

Forkers

ephracis

grunt-cert's Issues

Not sure how this works

I'm finding it hard to use and I'm getting errors even though I'm following the documentation. Is this a module issue? a documentation issue? Thanks

cert: { keys: { mode: { type: 'private-public-keys', keySize: 4096 }, locations: { privateKey: './private-key.pem', publicKey: './public-key.pem' } }, cert: { mode: { type: 'cert', keySize: 4096 }, locations: { key: './key.key', cert: './cert.cert' }, certData: { countryName: 'UK', state: 'London', city: 'London', organizationName: 'Company ltd', organizationUnitName: 'Development', commonName: 'Company ltd', emailAddress: '[email protected]' } } }

`Registering "/myProject/node_modules/grunt-cert/tasks" tasks.
Loading "cert.js" tasks...OK

  • cert
    Warning: Task "grunt-cert" failed. Use --force to continue.

Aborted due to warnings.`

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.