Coder Social home page Coder Social logo

crypt-pkcs10's Introduction

Crypt-PKCS10 version 1.5
==================================
	Crypt::PKCS10 is a small command line utility for parsing
	PKCS #10 requests to perl data structure.

INSTALLATION
    To install this module type the following:

       perl Makefile.PL
       make
       make test
       make install

DEPENDENCIES
    This module requires:

      Convert::ASN1

NAME
	Crypt::PKCS10 - Parses PKCS #10 requests

SYNOPSIS
	use Crypt::PKCS10;

	$decoded = CSR->new($csr);
	$version = $decoded->version;
	
DESCRIPTION
	Crypt::PKCS10 parses certificate signing requests to perl
	data structure and provides accessor methods to supported
	elements.

	It is based on the generic ASN.1 module by Graham Barr and on the
    x509decode example by Norbert Klasen. It is also based upon the
    works of Duncan Segrests Crypt-X509-CRL module.

    Note: The module parses common fields and extensions. Some
    fields might be missing.

CONSTRUCTOR
	new ( FILE )
		Takes a variable containing the PEM or DER formatted
		PKCS #10 request and returns a hash of it.

		Example:
			use Crypt::PKCS10;
			use Data::Dumper;
			$Data::Dumper::Useqq = 1;

			$decoded = CSR->new($csr);

			print Dumper $decoded;

METHODS
	The most common fields have own accessor methods. It is also
	possible to access these fields directly using the hash, though.
	Some methods transform the fields in order to provide printable
	strings.

	The following methods are implemented:

	* version
		Returns v1, v2 or v3 indicating the version.

	* commonName

	* organizationalUnitName

	* emailAddress

	* stateOrProvinceName

	* countryName

	* pkAlgorithm

	* subjectPublicKey
		Returns subjectPublicKey in its hex representation.

	* signatureAlgorithm

	* signature
		Returns signatur in its hex representation.

	* attributes
		Returns a HASH containing the attributes.

		Example:
			%attributes = $decoded->attributes;
			print Dumper(\%attributes);

	* certificateTemplate
		A Microsoft specific extension.

SEE ALSO
    An example on how to work with Crypt::PKCS10 can be
    found in t/Crypt-PKCS10.t.

AUTHOR
	Gideon Knocke [email protected]


COPYRIGHT AND LICENSE
	This software is copyright (c) 2014 by Gideon Knocke.

	This is free software; you can redistribute it and/or modify it under
	the same terms as the Perl 5 programming language system itself.

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.