Bug #71642 [Opn->Fbk]: Encrypt files using gnupg in php iis server?

From: Date: Thu, 08 Sep 2016 22:56:15 +0000
Subject: Bug #71642 [Opn->Fbk]: Encrypt files using gnupg in php iis server?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203888@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71642&edit=1 ID: 71642 Updated by: cmb@php.net Reported by: t dot tayyem at yahoo dot com Summary: Encrypt files using gnupg in php iis server? -Status: Open +Status: Feedback Type: Bug Package: IIS related Operating System: Windows NT (Windows 8 Business PHP Version: 5.6.18 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Please don't file non-security related tickets for PHP versions which are no more actively supported[1] - PHP 5.5 is not actively supported anymore as of July 2015. So please try again with an actively supported PHP version, and make sure that you have error_reporting set to E_ALL and to post *all* notices/warnings etc. thrown by PHP. Furthermore please post a self-contained reproduce script, if possible. And, of course, make sure, that you don't read the contents of the same file for the public and the private key: > $public_key_sender = file_get_contents('public_key_sender.asc', true); > $private_key_sender = file_get_contents('public_key_sender.asc', true); [1] <http://php.net/supported-versions.php> Previous Comments: ------------------------------------------------------------------------ [2016-02-22 09:33:11] t dot tayyem at yahoo dot com Description: ------------ I've faced the error Warning: gnupg_import(): import failed " while importing the public key and I did not have any luck solving this issue , when use (iis server-win8 - php version 5.5.12) with (php-5.5-windows-extensions/php_gnupg-1.3.3-5.5-vc11-x86/). The question is, can i use php_gnupg (PGP (Pretty Good Privacy)) with IIS server to encrypted file ? php_gnupg is a compatible with iis server !!!! NOTE: This problem does not appear when use XAMPP sever. http://php.net/manual/en/book.gnupg.php https://github.com/maryo/php-5.5-windows-extensions/tree/master/php_gnupg-1.3.3-5.5-vc11-x86 Test script: --------------- $res = gnupg_init(); $public_key_sender = file_get_contents('public_key_sender.asc', true); $private_key_sender = file_get_contents('public_key_sender.asc', true); $private_key_sender_ = gnupg_import($res,$private_key_sender); $public_key_sender_ = gnupg_import($res,$public_key_sender); Expected result: ---------------- when use iis server (php version 5.5.12) ( ! ) Warning: gnupg_import(): import failed in C:\inetpub\wwwroot\index.php on line 18 Actual result: -------------- when use xampp server (php version 5.5.12) Array ( [imported] => 0 [unchanged] => 1 [newuserids] => 0 [newsubkeys] => 0 [secretimported] => 0 [secretunchanged] => 0 [newsignatures] => 0 [skippedkeys] => 0 [fingerprint] => 94E803482C486876AEFB6A3B4EACA1AE3C37066D ) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71642&edit=1

« previous php.bugs (#203888) next »