▶🚶Reproduction steps
System says: Can't insert storage. Error: Unable to parse the p12 file. Is this a .p12 file? Is the password correct? OpenSSL error:
Cannot add external storage.
In the private key section we are asked to provide a JSON key instead of a P12 file. P12 file cannot be directly input here as plaintext.
📃Error log message
2018/10/19 22:19:53 [error] 14264#0: *39875 FastCGI sent in stderr: "PHP message: Google_Auth_Exception: Unable to parse the p12 file. Is this a .p12 file? Is the password correct? OpenSSL error: in /var/www/chevereto/app/vendor/google/Signer/P12.php:55 Stack trace: #0 /var/www/chevereto/app/vendor/google/Auth/AssertionCredentials.php(130): Google_Signer_P12->__construct('', 'notasecret') #1 /var/www/chevereto/app/vendor/google/Auth/AssertionCredentials.php(107): Google_Auth_AssertionCredentials->makeSignedJwt('{"aud":"https:/...') #2 /var/www/chevereto/app/vendor/google/Auth/OAuth2.php(306): Google_Auth_AssertionCredentials->generateAssertion() #3 /var/www/chevereto/app/lib/classes/class.storage.php(564): Google_Auth_OAuth2->refreshTokenWithAssertion(Object(Google_Auth_AssertionCredentials)) #4 /var/www/chevereto/app/lib/classes/class.storage.php(130): CHV\Storage::requireAPI(Array) #5 /var/www/chevereto/app/lib/classes/class.storage.php(355): CHV\Storage::uploadFiles(Array, Array) #6 /var/www/chevereto/app/lib/classes/class.storage.php(424): CHV\Storage::test(Array)" while reading response header from upstream, client: 103.86.70.54, server: xxx, request: "POST /json HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "xxx", referrer: "https://xxx/dashboard/settings/external-storage"
- Go to external storage setting, select Google Cloud API
- Paste the generated json file with other information filled and click submit
- P12 Error message is shown
System says: Can't insert storage. Error: Unable to parse the p12 file. Is this a .p12 file? Is the password correct? OpenSSL error:
Cannot add external storage.
In the private key section we are asked to provide a JSON key instead of a P12 file. P12 file cannot be directly input here as plaintext.
📃Error log message
2018/10/19 22:19:53 [error] 14264#0: *39875 FastCGI sent in stderr: "PHP message: Google_Auth_Exception: Unable to parse the p12 file. Is this a .p12 file? Is the password correct? OpenSSL error: in /var/www/chevereto/app/vendor/google/Signer/P12.php:55 Stack trace: #0 /var/www/chevereto/app/vendor/google/Auth/AssertionCredentials.php(130): Google_Signer_P12->__construct('', 'notasecret') #1 /var/www/chevereto/app/vendor/google/Auth/AssertionCredentials.php(107): Google_Auth_AssertionCredentials->makeSignedJwt('{"aud":"https:/...') #2 /var/www/chevereto/app/vendor/google/Auth/OAuth2.php(306): Google_Auth_AssertionCredentials->generateAssertion() #3 /var/www/chevereto/app/lib/classes/class.storage.php(564): Google_Auth_OAuth2->refreshTokenWithAssertion(Object(Google_Auth_AssertionCredentials)) #4 /var/www/chevereto/app/lib/classes/class.storage.php(130): CHV\Storage::requireAPI(Array) #5 /var/www/chevereto/app/lib/classes/class.storage.php(355): CHV\Storage::uploadFiles(Array, Array) #6 /var/www/chevereto/app/lib/classes/class.storage.php(424): CHV\Storage::test(Array)" while reading response header from upstream, client: 103.86.70.54, server: xxx, request: "POST /json HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "xxx", referrer: "https://xxx/dashboard/settings/external-storage"
Last edited: