Class OpenSSLConfig

Description

Provides OpenSSL configuration

The OpenSSL library is configured using a openssl.cnf configuration file which is expected to be located in a data repository.

It can contain different blocks called extensions using which you can specify multiple configuration you can later be choose at runtime.

Located in /phpsatk/local/org.eenterphace.sat.crypto.openssl/openssl.config.php (line 40)


	
			
Method Summary
array[string] getCAInfo ()
array[string=>mixed] getConfig ([string $use_ext = null])
Methods
getCAInfo (line 91)

Get CA trust information

This function prepares a cainfo array which can be used by some OpenSSL functions to verify given certificates.

If 'ca.cert' is found in the configuartion file this single file will be added to the trust list.

If you want multiple certificates to be trusted you can specify a 'ca.trusted.dir' in configuration which needs to contain files named using the OpenSSL hash format.

  • access: public
  • static:
array[string] getCAInfo ()
getConfig (line 57)

Gets a config array

Can be used with some openssl_* functions

Configures the OpenSSL library, uses:

  • a configuration file found in a data repository
  • SHA1 as digest algorithm
  • The given config extension (by default user_cert)
  • 2048 bit RSA private keys
  • Key encryption for export with passphrase

  • access: public
  • static:
array[string=>mixed] getConfig ([string $use_ext = null])
  • string $use_ext

Documentation generated on Mon, 21 May 2007 10:35:12 +0200 by phpDocumentor 1.3.0RC5