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_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_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_open

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Open sealed data bool openssl_open ( string $sealed_data, string &$open_data, string $env_key, mixed $priv_key_id [, string $method ] ) openssl_open() opens (decrypts) sealed_data using the private key associated with the key identifier priv_key_id and the envelope key env_key, and fills open_data with the decrypted data. The envelope key is generated when the data are sealed and can onl

openssl_pbkdf2

(PHP 5 >= 5.5.0, PHP 7) Generates a PKCS5 v2 PBKDF2 string, defaults to SHA-1 string openssl_pbkdf2 ( string $password, string $salt, int $key_length, int $iterations [, string $digest_algorithm ] ) Parameters: password salt key_length iterations dig

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_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_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_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_export_to_file

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