openssl_pkcs12_export_to_file

(PHP 5 >= 5.2.2, PHP 7, PHP 8)

openssl_pkcs12_export_to_fileBir PKCS#12 uyumlu sertifika deposunu bir dosyaya kaydeder

Açıklama

openssl_pkcs12_export_to_file(
    mixed $x509,
    string $dosya,
    mixed $gizli_anh,
    string $parola,
    array $değiştirgeler = ?
): bool

Belitilen x509 sertifikalarını, PKCS#12 dosya biçemiyle belirtilen dosya'ya kaydeder.

Değiştirgeler

x509

dosya

Çıktı dosyasının yolu.

gizli_anh

PKCS#12 dosyasının gizli anahtar bileşeni.

parola

PKCS#12 dosyasının şifreleme/çözme parolası.

değiştirgeler

Dönen Değerler

Başarı durumunda true, başarısızlık durumunda false döner.

add a note add a note

User Contributed Notes 2 notes

up
1
lampacz at gmail dot com
14 years ago
[, array $args ]  can contain only: extracerts, friendly_name

extracerts - additional certificates (can be file or string)
friendly_name - "friendly name" for the certificate and private key. This name is typically displayed in list boxes by software importing the file.

based on source code version 5.2.8 and pkcs12 man page
up
0
greejd
5 years ago
please note
the key 'friendlyname' should be 'friendly_name' in args

$args = array(
        'friendly_name'=> 'www.example.com'
);
To Top