LXX. OpenSSL functions

אזהרה

רכיב זה הוא ניסיוני . כלומר , התנהגות הפונקציות,שמות הפונקציות ובאופן כללי כל מה שמתועד כאן עשוי להשתנות בהפצה עתידית של PHP ללא התרעה . ראה הוזהרת , השימוש ברכיב זה על אחריותך בלבד .

Introduction

PHP-4.0.4pl1 requires OpenSSL = 0.9.6 , but PHP-4.0.5 and greater with also work with OpenSSL = 0.9.5 .

הערה : Please keep in mind that this extension is still considered experimental !

Key/Certificate parameters

    1. An X.509 resource returned from openssl_x509_read







Certificate Verification

When calling a function that will verify a signature / certificate , the cainfo parameter is an array containing file and directory names the specify the locations of trusted CA files .

PKCS7 Flags/Constants

טבלה 1 .

With this option only the certificates specified in the extracerts parameter of openssl_pkcs7_verify( ) With this option only the certificates specified in the extracerts parameter of openssl_pkcs7_verify( ) are used .


הערה :

תוכן העניינים:
openssl_csr_export -- Exports a CSR to file or a var
openssl_csr_export_to_file -- Exports a CSR to file or a var
openssl_csr_new -- Generates a privkey and CSR
openssl_csr_sign -- Signs a cert with another CERT
openssl_error_string -- Return openSSL error message
openssl_free_key -- Free key resource
openssl_get_privatekey -- Prepare a PEM formatted private key for use
openssl_get_publickey -- Extract public key from certificate and prepare it for use
openssl_open -- Open sealed data
openssl_pkcs7_decrypt -- Decrypts an S/MIME encrypted message
openssl_pkcs7_encrypt -- Encrypt an S/MIME message
openssl_pkcs7_sign -- sign an S/MIME message
openssl_pkcs7_verify -- Verifies the signature of an S/MIME signed message
openssl_pkey_export -- Gets an exportable representation of a key into a string or file
openssl_pkey_export_to_file -- Gets an exportable representation of a key into a file
openssl_pkey_new -- Generates a new private key
openssl_private_decrypt -- Decrypts data with private key
openssl_private_encrypt -- Encrypts data with private key
openssl_public_decrypt -- Decrypts data with public key
openssl_public_encrypt -- Encrypts data with public key
openssl_seal -- Seal (encrypt) data
openssl_sign -- Generate signature
openssl_verify -- Verify signature
openssl_x509_check_private_key -- Checks if a private key corresponds to a CERT
openssl_x509_checkpurpose -- Verifies if a certificate can be used for a particular purpose
openssl_x509_export -- Exports a CERT to file or a var
openssl_x509_export_to_file -- Exports a CERT to file or a var
openssl_x509_free -- Free certificate resource
openssl_x509_parse -- Parse an X509 certificate and return the information as an array
openssl_x509_read -- Parse an X.509 certificate and return a resource identifier for it