Troubleshooting TWINT Plugin Certificate Uploads in Shopware 6

TWINT Plugin Certificate Upload Fails in Shopware 6: A User's Experience

A Shopware 6 user reported an issue while configuring the TWINT plugin. Specifically, they were unable to upload their SSL certificate (.p12 file) through the Shopware admin panel (Settings → Extensions → TWINT credentials).

The error message displayed was:

The selected file „12356989-87fe-4ede-9c30-c7cbe85e4a86.p12“ has an unsupported format. Please use one of the following types: application/x-pkcs12.

Despite the error message, the user confirmed the validity of the certificate file using the following OpenSSL command:

openssl pkcs12 -info -in 12356989-87fe-4ede-9c30-c7cbe85e4a86.p12 -noout

This command verifies the integrity and content of the PKCS#12 certificate, suggesting the file itself was not corrupted or invalid.

Possible Causes and Workarounds

The user noted that the issue seemed to be browser-specific. While the certificate upload worked correctly in Safari on iOS, it failed in both Chromium and Firefox on Ubuntu 24.04. This points towards a potential JavaScript issue or browser compatibility problem within the Shopware admin interface.

Potential Causes:

  • Browser Compatibility: The JavaScript code responsible for handling file uploads might not be fully compatible with all browsers.
  • JavaScript Error: A JavaScript error could be preventing the upload process from completing correctly.
  • Server-Side Issue: Although less likely given the browser-specific behavior, there might be a server-side issue preventing the file from being processed.

Workarounds:

  • Try a Different Browser: As demonstrated by the user, attempting the upload in a different browser (e.g., Safari, Chrome, Firefox, Edge) can sometimes resolve the issue.
  • Clear Browser Cache and Cookies: Clearing the browser's cache and cookies can sometimes resolve conflicts caused by outdated or corrupted data.
  • Check Browser Console: Open the browser's developer console (usually by pressing F12) and look for any JavaScript errors that might be occurring during the upload process.
  • Update Browser: Ensure the browser is updated to the latest version.
  • Contact Plugin Developer: If the issue persists, contact the TWINT plugin developer for support. They may be aware of the issue and have a fix available.

This forum thread highlights the importance of testing plugin configurations across different browsers and environments. It also demonstrates a practical approach to troubleshooting certificate upload issues in Shopware 6.

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools