GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  OPENXPKI::CRYPTO::OBJECT (3)

.ds Aq ’

Name

OpenXPKI::Crypto::Object

CONTENTS

Description

This class is a basic implementation for all cryptographic objects which are supported by OpenXPKI. It includes several basic function which are common for all crypto objects. The most common functions base on the OpenXPKI::Crypto::Header class which is used by OpenXPKI to store non-standard and dynamic information of objects.

Functions

    get_header

returns the plain header of the object.

    get_body

returns the plain (cryptographic) body of the object.

    get_raw

returns the complete plain object.

    get_parsed

expects an array which is a path to parsed value. Example:

$obj->get_parsed (HEADER, SERIAL)

    get_parsed_ref

returns the parsed hash reference. Be warned - this function should only be used to serialize and transport the hash. You should never manipulate the data inside of the hash. Example:

$obj->get_parsed_ref ()

    get_serial

returns the serial which is stored in the cryptographic body of the object. Some objects like CSRs store the SERIAL in the HEADER. Such types of objects must overwrite this function.

    set_header_attribute

set an attribute in the header.

    get_subject_alt_names

returns the subject alternative names, by default as array of arrays, i.e.
[
[ ’DNS’, ’www.example.com’ ],
[ ’DNS’, ’www.example.org’ ], ]

This works only for certificates or certificate signing requests.

If you pass { FORMAT => HASH } as parameter, you will get the sans as hash:



   {
       DNS => [ www.example.com, www.example.org ],
       IP  => [ 1.2.3.4 ]      
   }



Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 OPENXPKI::CRYPTO::OBJECT (3) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.