csoc-de / Shifts

MIT License
28 stars 7 forks source link

Solution: An error occurred during the request. Unable to proceed. Certificate "4510" has been revoked #37

Closed sonaxpro closed 1 year ago

sonaxpro commented 1 year ago

I try to install this plugin in NC v26. After git clone I have in admin-section Apps by Shifts buttons "Remove" and "Download and enable". When I click to "Download and enable", I get error An error occurred during the request. Unable to proceed. Certificate "4510" has been revoked.

Now I understand, that the Name in Github "Shifts" with great "S" and Nextcloud don't see cumstoms_apps/shifts, it's cumstoms_apps/Shifts and download from apps.nextcloud.com 1.8.6 version (new is 1.9.0)

I have 2 Folder Shifts (1.9.0) shifts (1.8.6)

My bash skript:

cd custom_apps
rm -rf shifts/
rm -rf Shifts/
git clone https://github.com/csoc-de/Shifts.git
mv Shifts/ shifts/
cd shifts/
npm i
make dev-setup
sonaxpro commented 1 year ago

Autor, please rename repo from Shifts to shifts.

sonaxpro commented 1 year ago

For install from apps.nextcloud.com 1.8.6 you can errors remove, if you disable checks in your nextcloud:

  1. An error occurred during the request. Unable to proceed. Certificate "4510" has been revoked Make comments in nextcloud/lib/private/Installer.php:241-259 // Verify if the certificate has been revoked /*$crl = new X509(); foreach ($rootCrts as $rootCrt) { $crl->loadCA($rootCrt); } $crl->loadCRL(file_get_contents(__DIR__ . '/../../resources/codesigning/root.crl')); if ($crl->validateSignature() !== true) { throw new \Exception('Could not validate CRL signature'); } $csn = $loadedCertificate['tbsCertificate']['serialNumber']->toString(); $revoked = $crl->getRevoked($csn); if ($revoked !== false) { throw new \Exception( sprintf( 'Certificate "%s" has been revoked', $csn ) ); }*/

  2. App "shifts" cannot be installed because it is not compatible with this version of the server Make comments in nextcloud/lib/private/Installer.php:130-137 /*if (!\OC_App::isAppCompatible($version, $info, $ignoreMax)) { throw new \Exception( // TODO $l $l->t('App "%s" cannot be installed because it is not compatible with this version of the server.', [$info['name']] ) ); }*/

of course, after installation, it is necessary to uncomment it back

csoc-kevink commented 1 year ago

The old certificate has been revoked since we ordered a new certificate. Unfortunately, we are currently not able to publish the new version in the appstore since we're getting a signature error.