![]() |
![]()
| ![]() |
![]()
NameOpenXPKI::Crypto::Backend::OpenSSL::Command DescriptionThis function is the base class for all available OpenSSL commands from the OpenSSL command line interface. All commands are executed inside of the OpenSSL shell. Functionsnewis the constructor. The ENGINE and the TMP parameter must be always present. All other parameters will be passed without any checks to the hash of the class instance. The real checks must be implemented by the commands itself. get_tmpfileReturns the filename of a temporary file. my $tmpfile = $self->get_tmpfile(); The files are created using File::Temp, handles are held by the command base class to ensure the files remain available while the class exists and are cleaned up when the command class is destroyed! NOTE: The synatax with arguments to create one or multiple filename in the class namespace is no longer supported! set_envThis function works exactly like set_tmpfile but without any automatical prefixes or suffixes. The environment is also cleaned up automatically. cleanupperforms the cleanup of any temporary stuff like files from get_tmpfile and environment variables from set_env. get_openssl_dnexpects a RFC2253 compliant DN and returns an OpenSSL DN. get_resultThe default handler returns the content of OUTFILE. Must be overriden in the child class if a different handling is required. Will throw an exception if OUTFILE is not set, not readable or zero size.
|