MAN page from OpenSuSE perl-OpenXPKI-Core-0.9.1389-6.362.CS.i586.rpm
OpenXPKI::Crypto::Backend::OpenSSL::Command
Section: User Contributed Perl Documentation (3)
Updated: 2008-09-30
Index Name
OpenXPKI::Crypto::Backend::OpenSSL::Command
Description
This function is the base class for all available OpenSSL commandsfrom the OpenSSL command line interface. All commands are executedinside of the OpenSSL shell.
Functions
new
is the constructor. The
ENGINE and the
TMP parameter must be alwayspresent. All other parameters will be passed without any checks tothe hash of the class instance. The real checks must be implementedby the commands itself.
set_tmpfile
expects a hash with prefix infront of
FILE and the filename which isa tmpfile. Example:
$self->set_tmpfile (``IN'' => ``/tmp/example.txt'')
mapped to
$self->{INFILE} = ``/tmp/example.txt'';
All temporary file are cleaned up automatically.
get_tmpfile
If called without arguments this method creates a temporary file and returns its filename:
my $tmpfile = $self->get_tmpfile();
If called with one or more arguments, the method creates a temporaryfile for each argument specified and calls $self->set_tmpfile() forthis argument.
Calling
$self->get_tmpfile(IN, OUT);
is equivalent to
$self->set_tmpfile( IN => $self->get_tmpfile(), OUT => $self->get_tmpfile() );
All temporary file are set to mode 0600 and are cleaned up automatically.
set_env
This function works exactly like set_tmpfile but without anyautomatical prefixes or suffixes. The environment is alsocleaned up automatically.
cleanup
performs the cleanup of any temporary stuff like files fromset_tmpfile and environment variables from set_env.
get_openssl_dn
expects a
RFC2253 compliant
DN and returns an OpenSSL
DN.
Index
- Name
- Description
- Functions
- new
- set_tmpfile
- get_tmpfile
- set_env
- cleanup
- get_openssl_dn
This document was created byman2html,using the manual pages.