Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

grunt-cert

dios-david3Apache-2.01.1.0

Generates private keys and certificates in a Grunt task

openssl, certificate, pem, ssl, tls, nodejs, grunt

readme

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: {
                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: 'foo@bar.fb'
                }
            }
        }
    });

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

Contributors welcome!