This re-encrypts the private keys with wavelog string

This commit is contained in:
phl0
2024-01-20 23:35:19 +01:00
parent 27c2773e39
commit 75c34ce68d
2 changed files with 48 additions and 2 deletions

View File

@@ -409,7 +409,7 @@ class Lotw extends CI_Controller {
if($worked) {
// Reading p12 successful
$new_password = "cloudlog"; // set default password
$new_password = "wavelog"; // set default password
$result = null;
$worked = openssl_pkey_export($results['pkey'], $result, $new_password);
@@ -957,7 +957,7 @@ class Lotw extends CI_Controller {
$key = $sign_key;
$pkeyid = openssl_pkey_get_private($key, 'cloudlog');
$pkeyid = openssl_pkey_get_private($key, 'wavelog');
//openssl_sign($plaintext, $signature, $pkeyid, OPENSSL_ALGO_SHA1 );
//openssl_free_key($pkeyid);