openssl_pkcs12_export

(PHP 5 >= 5.2.2, PHP 7) Exports a PKCS#12 Compatible Certificate Store File to variable. bool openssl_pkcs12_export ( mixed $x509, string &$out, mixed $priv_key, string $pass [, array $args ] ) openssl_pkcs12_export() stores x509 into a string named by out in a PKCS#12 file format. Parameters: x509 See Key/Certificate parameters for a list of valid values.

openssl_pkcs12_read

(PHP 5 >= 5.2.2, PHP 7) Parse a PKCS#12 Certificate Store into an array bool openssl_pkcs12_read ( string $pkcs12, array &$certs, string $pass ) openssl_pkcs12_read() parses the PKCS#12 certificate store supplied by pkcs12 into a array named certs. Parameters: pkcs12 The certificate store contents, not its file name. certs On suc

openssl_pkcs7_decrypt

(PHP 4 >= 4.0.6, PHP 5, PHP 7) Decrypts an S/MIME encrypted message bool openssl_pkcs7_decrypt ( string $infilename, string $outfilename, mixed $recipcert [, mixed $recipkey ] ) Decrypts the S/MIME encrypted message contained in the file specified by infilename using the certificate and its associated private key specified by recipcert and recipkey. Parameters: infilename

openssl_pkcs7_encrypt

(PHP 4 >= 4.0.6, PHP 5, PHP 7) Encrypt an S/MIME message bool openssl_pkcs7_encrypt ( string $infile, string $outfile, mixed $recipcerts, array $headers [, int $flags = 0 [, int $cipherid = OPENSSL_CIPHER_RC2_40 ]] ) openssl_pkcs7_encrypt() takes the contents of the file named infile and encrypts them using an RC2 40-bit cipher so that they can only be read by the intended recipients specified by recipcerts.

openssl_pkcs7_sign

(PHP 4 >= 4.0.6, PHP 5, PHP 7) Sign an S/MIME message bool openssl_pkcs7_sign ( string $infilename, string $outfilename, mixed $signcert, mixed $privkey, array $headers [, int $flags = PKCS7_DETACHED [, string $extracerts ]] ) openssl_pkcs7_sign() takes the contents of the file named infilename and signs them using the certificate and its matching private key specified by signcert and privkey parameters.

openssl_pkcs7_verify

(PHP 4 >= 4.0.6, PHP 5, PHP 7) Verifies the signature of an S/MIME signed message mixed openssl_pkcs7_verify ( string $filename, int $flags [, string $outfilename [, array $cainfo [, string $extracerts [, string $content ]]]] ) openssl_pkcs7_verify() reads the S/MIME message contained in the given file and examines the digital signature. Parameters: filename Path to th

openssl_pkey_export_to_file

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Gets an exportable representation of a key into a file bool openssl_pkey_export_to_file ( mixed $key, string $outfilename [, string $passphrase [, array $configargs ]] ) openssl_pkey_export_to_file() saves an ascii-armoured (PEM encoded) rendition of key into the file named by outfilename. Note: You need to have a valid openssl.cnf installed for this function to operate correctly. See the

openssl_pkey_export

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Gets an exportable representation of a key into a string bool openssl_pkey_export ( mixed $key, string &$out [, string $passphrase [, array $configargs ]] ) openssl_pkey_export() exports key as a PEM encoded string and stores it into out (which is passed by reference). Note: You need to have a valid openssl.cnf installed for this function to operate correctly. See the notes under the i

openssl_pkey_free

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Frees a private key void openssl_pkey_free ( resource $key ) This function frees a private key created by openssl_pkey_new(). Parameters: key Resource holding the key. Returns: No value is returned.

openssl_pkey_get_details

(PHP 5 >= 5.2.0, PHP 7) Returns an array with the key details array openssl_pkey_get_details ( resource $key ) This function returns the key details (bits, key, type). Parameters: key Resource holding the key. Returns: Returns an array with the key details in success or FALSE in failure. Returned array has indexes bits (number of bits), key (s