Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
/ grunt-cert Public archive

Creates private keys and certificates in a Grunt task.

License

Notifications You must be signed in to change notification settings

dios-david/grunt-cert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Contributors welcome!

About

Creates private keys and certificates in a Grunt task.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages