• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

Unable to parse Google Cloud Service Account json

Status
Not open for further replies.

hlx98007

Chevereto Member
▶🚶‍Reproduction steps
  1. Go to external storage setting, select Google Cloud API
  2. Paste the generated json file with other information filled and click submit
  3. P12 Error message is shown
😢Unexpected result

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:
You need the the JSON file and not the p12. I made some screenshoots how do you get your JSON file. After that all the file automatically downloaded to your pc. And in this file you find the private key, these key is for chevereto.
 

Attachments

  • 2018-10-20_09-40-59.png
    2018-10-20_09-40-59.png
    58.9 KB · Views: 11
  • 2018-10-20_09-41-22.png
    2018-10-20_09-41-22.png
    90 KB · Views: 11
  • 2018-10-20_09-41-41.png
    2018-10-20_09-41-41.png
    71.3 KB · Views: 9
  • 2018-10-20_09-42-51.png
    2018-10-20_09-42-51.png
    24.7 KB · Views: 10
  • 2018-10-20_09-44-10.png
    2018-10-20_09-44-10.png
    53 KB · Views: 9
Last edited:
Status
Not open for further replies.
Back
Top