@@ -70,7 +70,6 @@ protected function validate()
70
70
*/
71
71
public static function create ($ path , $ passPhrase , PublicKeyFile $ publicKeyFile , PrivateKeyFile $ privateKeyFile , $ privateKeyPassPhrase = null )
72
72
{
73
- $ out = escapeshellarg ($ path );
74
73
$ pass = escapeshellarg ($ passPhrase );
75
74
$ publicKeyIn = escapeshellarg ($ publicKeyFile ->getPathname ());
76
75
$ publicKeyInForm = escapeshellarg ($ publicKeyFile ->getFormat ());
@@ -107,7 +106,6 @@ public static function create($path, $passPhrase, PublicKeyFile $publicKeyFile,
107
106
public function getPem ($ path , $ passPhrase )
108
107
{
109
108
$ in = escapeshellarg ($ this ->getPathname ());
110
- $ out = escapeshellarg ($ path );
111
109
$ pass = escapeshellarg ($ passPhrase );
112
110
113
111
// if the keystore pass phrase is an empty string, the outputted private key will not contain a pass phrase
@@ -150,7 +148,6 @@ public function getPem($path, $passPhrase)
150
148
public function getPublicKey ($ path , $ passPhrase )
151
149
{
152
150
$ in = escapeshellarg ($ this ->getPathname ());
153
- $ out = escapeshellarg ($ path );
154
151
$ pass = escapeshellarg ($ passPhrase );
155
152
156
153
$ process1 = new Process ("openssl pkcs12 -in $ in -passin pass: $ pass -nokeys " );
@@ -182,7 +179,6 @@ public function getPublicKey($path, $passPhrase)
182
179
public function getPrivateKey ($ path , $ passPhrase )
183
180
{
184
181
$ in = escapeshellarg ($ this ->getPathname ());
185
- $ out = escapeshellarg ($ path );
186
182
$ pass = escapeshellarg ($ passPhrase );
187
183
188
184
// if the keystore pass phrase is an empty string, the outputted private key will not contain a pass phrase
0 commit comments