第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

未生成 RSA 私鑰

未生成 RSA 私鑰

PHP
湖上湖 2021-10-15 17:31:34
我是 PHP 新手,我遵循了本教程,https://www.virendrachandak.com/techtalk/encryption-using-php-openssl/使用下面的代碼,我的根文件夾中沒有生成 private.key 文件。有什么不對?我在 Windows 10 上運(yùn)行 XAMPP,并且我已將環(huán)境變量設(shè)置為指向我的 XAMPP 的 openssl.cnf 文件。function generate_public_private_keys() {    $privateKey = openssl_pkey_new(array(        'private_key_bits' => 2048,      // Size of Key.        'private_key_type' => OPENSSL_KEYTYPE_RSA,    ));    // Save the private key to private.key file. Never share this file with anyone.    openssl_pkey_export_to_file($privateKey, 'private.key');    // Generate the public key for the private key    $a_key = openssl_pkey_get_details($privateKey);    // Save the public key in public.key file. Send this file to the person developing the ticket scanner app    file_put_contents('public.key', $a_key['key']);    // Free the private Key.    openssl_free_key($privateKey);}
查看完整描述

1 回答

?
回首憶惘然

TA貢獻(xiàn)1847條經(jīng)驗 獲得超11個贊

嘗試在 Xampp 文件夾下查找,例如 C:\xampp


查看完整回答
反對 回復(fù) 2021-10-15
  • 1 回答
  • 0 關(guān)注
  • 142 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號