Invalid_RSA_public_key_PhpBackend.php.diff

Joschi Kuphal, 2014-01-28 16:18

Download (626 Bytes)

View differences:

/root/PhpBackend.php 2014-01-28 15:58:56.399305432 +0100
47 47
			openssl_pkey_export($privateKey, $privateKeyStr);
48 48
			// Prepare public key information
49 49
			$exportedData = '';
50
			$csr = openssl_csr_new(array(), $privateKey);
50
			$csr = openssl_csr_new(array(
51
				"localityName" => "foo",
52
				"organizationName" => "bar",
53
			), $privateKey);
51 54
			openssl_csr_export($csr, $exportedData, FALSE);
52 55
			// Get public key (in fact modulus) and exponent
53 56
			$publicKey = $this->extractPublicKeyModulus($exportedData);