Changeset 2952902
- Timestamp:
- 08/13/2023 02:50:17 PM (3 years ago)
- Location:
- auto-install-free-ssl
- Files:
-
- 277 added
- 6 edited
-
tags/3.6.2 (added)
-
tags/3.6.2/FreeSSLAuto (added)
-
tags/3.6.2/FreeSSLAuto/src (added)
-
tags/3.6.2/FreeSSLAuto/src/Acme (added)
-
tags/3.6.2/FreeSSLAuto/src/Acme/AcmeV2.php (added)
-
tags/3.6.2/FreeSSLAuto/src/Acme/Base64UrlSafeEncoder.php (added)
-
tags/3.6.2/FreeSSLAuto/src/Acme/Client.php (added)
-
tags/3.6.2/FreeSSLAuto/src/Acme/ClientInterface.php (added)
-
tags/3.6.2/FreeSSLAuto/src/Acme/Factory.php (added)
-
tags/3.6.2/FreeSSLAuto/src/Acme/openssl.cnf (added)
-
tags/3.6.2/FreeSSLAuto/src/Admin (added)
-
tags/3.6.2/FreeSSLAuto/src/Admin/AdminNotice.php (added)
-
tags/3.6.2/FreeSSLAuto/src/Admin/AutoDataEntry.php (added)
-
tags/3.6.2/FreeSSLAuto/src/Admin/Factory.php (added)
-
tags/3.6.2/FreeSSLAuto/src/Admin/ForceHttpsPage.php (added)
-
tags/3.6.2/FreeSSLAuto/src/Admin/ForceSSL.php (added)
-
tags/3.6.2/FreeSSLAuto/src/Admin/GenerateSSLmanually.php (added)
-
tags/3.6.2/FreeSSLAuto/src/Admin/HomeOptions.php (added)
-
tags/3.6.2/FreeSSLAuto/src/Admin/Log.php (added)
-
tags/3.6.2/FreeSSLAuto/src/Controller.php (added)
-
tags/3.6.2/FreeSSLAuto/src/Email.php (added)
-
tags/3.6.2/FreeSSLAuto/src/Logger.php (added)
-
tags/3.6.2/assets (added)
-
tags/3.6.2/assets/css (added)
-
tags/3.6.2/assets/css/aifs-admin.css (added)
-
tags/3.6.2/assets/img (added)
-
tags/3.6.2/assets/img/fire.webp (added)
-
tags/3.6.2/assets/img/icon.jpg (added)
-
tags/3.6.2/assets/img/ssl-error.jpg (added)
-
tags/3.6.2/assets/js (added)
-
tags/3.6.2/assets/js/script.js (added)
-
tags/3.6.2/auto-install-free-ssl.php (added)
-
tags/3.6.2/composer.json (added)
-
tags/3.6.2/composer.lock (added)
-
tags/3.6.2/freemius (added)
-
tags/3.6.2/freemius/LICENSE.txt (added)
-
tags/3.6.2/freemius/assets (added)
-
tags/3.6.2/freemius/assets/css (added)
-
tags/3.6.2/freemius/assets/css/admin (added)
-
tags/3.6.2/freemius/assets/css/admin/account.css (added)
-
tags/3.6.2/freemius/assets/css/admin/add-ons.css (added)
-
tags/3.6.2/freemius/assets/css/admin/affiliation.css (added)
-
tags/3.6.2/freemius/assets/css/admin/checkout.css (added)
-
tags/3.6.2/freemius/assets/css/admin/clone-resolution.css (added)
-
tags/3.6.2/freemius/assets/css/admin/common.css (added)
-
tags/3.6.2/freemius/assets/css/admin/connect.css (added)
-
tags/3.6.2/freemius/assets/css/admin/debug.css (added)
-
tags/3.6.2/freemius/assets/css/admin/dialog-boxes.css (added)
-
tags/3.6.2/freemius/assets/css/admin/gdpr-optin-notice.css (added)
-
tags/3.6.2/freemius/assets/css/admin/index.php (added)
-
tags/3.6.2/freemius/assets/css/admin/optout.css (added)
-
tags/3.6.2/freemius/assets/css/admin/plugins.css (added)
-
tags/3.6.2/freemius/assets/css/customizer.css (added)
-
tags/3.6.2/freemius/assets/css/index.php (added)
-
tags/3.6.2/freemius/assets/img (added)
-
tags/3.6.2/freemius/assets/img/auto-install-free-ssl.png (added)
-
tags/3.6.2/freemius/assets/img/index.php (added)
-
tags/3.6.2/freemius/assets/img/plugin-icon.png (added)
-
tags/3.6.2/freemius/assets/img/theme-icon.png (added)
-
tags/3.6.2/freemius/assets/index.php (added)
-
tags/3.6.2/freemius/assets/js (added)
-
tags/3.6.2/freemius/assets/js/index.php (added)
-
tags/3.6.2/freemius/assets/js/nojquery.ba-postmessage.js (added)
-
tags/3.6.2/freemius/assets/js/nojquery.ba-postmessage.min.js (added)
-
tags/3.6.2/freemius/assets/js/postmessage.js (added)
-
tags/3.6.2/freemius/config.php (added)
-
tags/3.6.2/freemius/includes (added)
-
tags/3.6.2/freemius/includes/class-freemius-abstract.php (added)
-
tags/3.6.2/freemius/includes/class-freemius.php (added)
-
tags/3.6.2/freemius/includes/class-fs-admin-notices.php (added)
-
tags/3.6.2/freemius/includes/class-fs-api.php (added)
-
tags/3.6.2/freemius/includes/class-fs-lock.php (added)
-
tags/3.6.2/freemius/includes/class-fs-logger.php (added)
-
tags/3.6.2/freemius/includes/class-fs-options.php (added)
-
tags/3.6.2/freemius/includes/class-fs-plugin-updater.php (added)
-
tags/3.6.2/freemius/includes/class-fs-security.php (added)
-
tags/3.6.2/freemius/includes/class-fs-storage.php (added)
-
tags/3.6.2/freemius/includes/class-fs-user-lock.php (added)
-
tags/3.6.2/freemius/includes/customizer (added)
-
tags/3.6.2/freemius/includes/customizer/class-fs-customizer-support-section.php (added)
-
tags/3.6.2/freemius/includes/customizer/class-fs-customizer-upsell-control.php (added)
-
tags/3.6.2/freemius/includes/customizer/index.php (added)
-
tags/3.6.2/freemius/includes/debug (added)
-
tags/3.6.2/freemius/includes/debug/class-fs-debug-bar-panel.php (added)
-
tags/3.6.2/freemius/includes/debug/debug-bar-start.php (added)
-
tags/3.6.2/freemius/includes/debug/index.php (added)
-
tags/3.6.2/freemius/includes/entities (added)
-
tags/3.6.2/freemius/includes/entities/class-fs-affiliate-terms.php (added)
-
tags/3.6.2/freemius/includes/entities/class-fs-affiliate.php (added)
-
tags/3.6.2/freemius/includes/entities/class-fs-billing.php (added)
-
tags/3.6.2/freemius/includes/entities/class-fs-entity.php (added)
-
tags/3.6.2/freemius/includes/entities/class-fs-payment.php (added)
-
tags/3.6.2/freemius/includes/entities/class-fs-plugin-info.php (added)
-
tags/3.6.2/freemius/includes/entities/class-fs-plugin-license.php (added)
-
tags/3.6.2/freemius/includes/entities/class-fs-plugin-plan.php (added)
-
tags/3.6.2/freemius/includes/entities/class-fs-plugin-tag.php (added)
-
tags/3.6.2/freemius/includes/entities/class-fs-plugin.php (added)
-
tags/3.6.2/freemius/includes/entities/class-fs-pricing.php (added)
-
tags/3.6.2/freemius/includes/entities/class-fs-scope-entity.php (added)
-
tags/3.6.2/freemius/includes/entities/class-fs-site.php (added)
-
tags/3.6.2/freemius/includes/entities/class-fs-subscription.php (added)
-
tags/3.6.2/freemius/includes/entities/class-fs-user.php (added)
-
tags/3.6.2/freemius/includes/entities/index.php (added)
-
tags/3.6.2/freemius/includes/fs-core-functions.php (added)
-
tags/3.6.2/freemius/includes/fs-essential-functions.php (added)
-
tags/3.6.2/freemius/includes/fs-html-escaping-functions.php (added)
-
tags/3.6.2/freemius/includes/fs-plugin-info-dialog.php (added)
-
tags/3.6.2/freemius/includes/index.php (added)
-
tags/3.6.2/freemius/includes/l10n.php (added)
-
tags/3.6.2/freemius/includes/managers (added)
-
tags/3.6.2/freemius/includes/managers/class-fs-admin-menu-manager.php (added)
-
tags/3.6.2/freemius/includes/managers/class-fs-admin-notice-manager.php (added)
-
tags/3.6.2/freemius/includes/managers/class-fs-cache-manager.php (added)
-
tags/3.6.2/freemius/includes/managers/class-fs-clone-manager.php (added)
-
tags/3.6.2/freemius/includes/managers/class-fs-gdpr-manager.php (added)
-
tags/3.6.2/freemius/includes/managers/class-fs-key-value-storage.php (added)
-
tags/3.6.2/freemius/includes/managers/class-fs-license-manager.php (added)
-
tags/3.6.2/freemius/includes/managers/class-fs-option-manager.php (added)
-
tags/3.6.2/freemius/includes/managers/class-fs-permission-manager.php (added)
-
tags/3.6.2/freemius/includes/managers/class-fs-plan-manager.php (added)
-
tags/3.6.2/freemius/includes/managers/class-fs-plugin-manager.php (added)
-
tags/3.6.2/freemius/includes/managers/index.php (added)
-
tags/3.6.2/freemius/includes/sdk (added)
-
tags/3.6.2/freemius/includes/sdk/Exceptions (added)
-
tags/3.6.2/freemius/includes/sdk/Exceptions/ArgumentNotExistException.php (added)
-
tags/3.6.2/freemius/includes/sdk/Exceptions/EmptyArgumentException.php (added)
-
tags/3.6.2/freemius/includes/sdk/Exceptions/Exception.php (added)
-
tags/3.6.2/freemius/includes/sdk/Exceptions/InvalidArgumentException.php (added)
-
tags/3.6.2/freemius/includes/sdk/Exceptions/OAuthException.php (added)
-
tags/3.6.2/freemius/includes/sdk/Exceptions/index.php (added)
-
tags/3.6.2/freemius/includes/sdk/FreemiusBase.php (added)
-
tags/3.6.2/freemius/includes/sdk/FreemiusWordPress.php (added)
-
tags/3.6.2/freemius/includes/sdk/LICENSE.txt (added)
-
tags/3.6.2/freemius/includes/sdk/index.php (added)
-
tags/3.6.2/freemius/includes/supplements (added)
-
tags/3.6.2/freemius/includes/supplements/fs-essential-functions-1.1.7.1.php (added)
-
tags/3.6.2/freemius/includes/supplements/fs-essential-functions-2.2.1.php (added)
-
tags/3.6.2/freemius/includes/supplements/fs-migration-2.5.1.php (added)
-
tags/3.6.2/freemius/includes/supplements/index.php (added)
-
tags/3.6.2/freemius/index.php (added)
-
tags/3.6.2/freemius/languages (added)
-
tags/3.6.2/freemius/languages/freemius-cs_CZ.mo (added)
-
tags/3.6.2/freemius/languages/freemius-da_DK.mo (added)
-
tags/3.6.2/freemius/languages/freemius-de_DE.mo (added)
-
tags/3.6.2/freemius/languages/freemius-en.mo (added)
-
tags/3.6.2/freemius/languages/freemius-es_ES.mo (added)
-
tags/3.6.2/freemius/languages/freemius-fr_FR.mo (added)
-
tags/3.6.2/freemius/languages/freemius-he_IL.mo (added)
-
tags/3.6.2/freemius/languages/freemius-hu_HU.mo (added)
-
tags/3.6.2/freemius/languages/freemius-it_IT.mo (added)
-
tags/3.6.2/freemius/languages/freemius-ja.mo (added)
-
tags/3.6.2/freemius/languages/freemius-nl_NL.mo (added)
-
tags/3.6.2/freemius/languages/freemius-ru_RU.mo (added)
-
tags/3.6.2/freemius/languages/freemius-ta.mo (added)
-
tags/3.6.2/freemius/languages/freemius-zh_CN.mo (added)
-
tags/3.6.2/freemius/languages/freemius.pot (added)
-
tags/3.6.2/freemius/languages/index.php (added)
-
tags/3.6.2/freemius/require.php (added)
-
tags/3.6.2/freemius/start.php (added)
-
tags/3.6.2/freemius/templates (added)
-
tags/3.6.2/freemius/templates/account (added)
-
tags/3.6.2/freemius/templates/account.php (added)
-
tags/3.6.2/freemius/templates/account/billing.php (added)
-
tags/3.6.2/freemius/templates/account/index.php (added)
-
tags/3.6.2/freemius/templates/account/partials (added)
-
tags/3.6.2/freemius/templates/account/partials/activate-license-button.php (added)
-
tags/3.6.2/freemius/templates/account/partials/addon.php (added)
-
tags/3.6.2/freemius/templates/account/partials/deactivate-license-button.php (added)
-
tags/3.6.2/freemius/templates/account/partials/disconnect-button.php (added)
-
tags/3.6.2/freemius/templates/account/partials/index.php (added)
-
tags/3.6.2/freemius/templates/account/partials/site.php (added)
-
tags/3.6.2/freemius/templates/account/payments.php (added)
-
tags/3.6.2/freemius/templates/add-ons.php (added)
-
tags/3.6.2/freemius/templates/add-trial-to-pricing.php (added)
-
tags/3.6.2/freemius/templates/admin-notice.php (added)
-
tags/3.6.2/freemius/templates/ajax-loader.php (added)
-
tags/3.6.2/freemius/templates/api-connectivity-message-js.php (added)
-
tags/3.6.2/freemius/templates/auto-installation.php (added)
-
tags/3.6.2/freemius/templates/checkout.php (added)
-
tags/3.6.2/freemius/templates/clone-resolution-js.php (added)
-
tags/3.6.2/freemius/templates/connect (added)
-
tags/3.6.2/freemius/templates/connect.php (added)
-
tags/3.6.2/freemius/templates/connect/index.php (added)
-
tags/3.6.2/freemius/templates/connect/permission.php (added)
-
tags/3.6.2/freemius/templates/connect/permissions-group.php (added)
-
tags/3.6.2/freemius/templates/contact.php (added)
-
tags/3.6.2/freemius/templates/debug (added)
-
tags/3.6.2/freemius/templates/debug.php (added)
-
tags/3.6.2/freemius/templates/debug/api-calls.php (added)
-
tags/3.6.2/freemius/templates/debug/index.php (added)
-
tags/3.6.2/freemius/templates/debug/logger.php (added)
-
tags/3.6.2/freemius/templates/debug/plugins-themes-sync.php (added)
-
tags/3.6.2/freemius/templates/debug/scheduled-crons.php (added)
-
tags/3.6.2/freemius/templates/email.php (added)
-
tags/3.6.2/freemius/templates/forms (added)
-
tags/3.6.2/freemius/templates/forms/affiliation.php (added)
-
tags/3.6.2/freemius/templates/forms/data-debug-mode.php (added)
-
tags/3.6.2/freemius/templates/forms/deactivation (added)
-
tags/3.6.2/freemius/templates/forms/deactivation/contact.php (added)
-
tags/3.6.2/freemius/templates/forms/deactivation/form.php (added)
-
tags/3.6.2/freemius/templates/forms/deactivation/index.php (added)
-
tags/3.6.2/freemius/templates/forms/deactivation/retry-skip.php (added)
-
tags/3.6.2/freemius/templates/forms/email-address-update.php (added)
-
tags/3.6.2/freemius/templates/forms/index.php (added)
-
tags/3.6.2/freemius/templates/forms/license-activation.php (added)
-
tags/3.6.2/freemius/templates/forms/optout.php (added)
-
tags/3.6.2/freemius/templates/forms/premium-versions-upgrade-handler.php (added)
-
tags/3.6.2/freemius/templates/forms/premium-versions-upgrade-metadata.php (added)
-
tags/3.6.2/freemius/templates/forms/resend-key.php (added)
-
tags/3.6.2/freemius/templates/forms/subscription-cancellation.php (added)
-
tags/3.6.2/freemius/templates/forms/trial-start.php (added)
-
tags/3.6.2/freemius/templates/forms/user-change.php (added)
-
tags/3.6.2/freemius/templates/gdpr-optin-js.php (added)
-
tags/3.6.2/freemius/templates/index.php (added)
-
tags/3.6.2/freemius/templates/js (added)
-
tags/3.6.2/freemius/templates/js/index.php (added)
-
tags/3.6.2/freemius/templates/js/jquery.content-change.php (added)
-
tags/3.6.2/freemius/templates/js/open-license-activation.php (added)
-
tags/3.6.2/freemius/templates/js/permissions.php (added)
-
tags/3.6.2/freemius/templates/js/style-premium-theme.php (added)
-
tags/3.6.2/freemius/templates/partials (added)
-
tags/3.6.2/freemius/templates/partials/index.php (added)
-
tags/3.6.2/freemius/templates/partials/network-activation.php (added)
-
tags/3.6.2/freemius/templates/plugin-icon.php (added)
-
tags/3.6.2/freemius/templates/plugin-info (added)
-
tags/3.6.2/freemius/templates/plugin-info/description.php (added)
-
tags/3.6.2/freemius/templates/plugin-info/features.php (added)
-
tags/3.6.2/freemius/templates/plugin-info/index.php (added)
-
tags/3.6.2/freemius/templates/plugin-info/screenshots.php (added)
-
tags/3.6.2/freemius/templates/powered-by.php (added)
-
tags/3.6.2/freemius/templates/pricing.php (added)
-
tags/3.6.2/freemius/templates/secure-https-header.php (added)
-
tags/3.6.2/freemius/templates/sticky-admin-notice-js.php (added)
-
tags/3.6.2/freemius/templates/tabs-capture-js.php (added)
-
tags/3.6.2/freemius/templates/tabs.php (added)
-
tags/3.6.2/index.php (added)
-
tags/3.6.2/languages (added)
-
tags/3.6.2/languages/index.php (added)
-
tags/3.6.2/license.txt (added)
-
tags/3.6.2/readme.txt (added)
-
tags/3.6.2/vendor (added)
-
tags/3.6.2/vendor/autoload.php (added)
-
tags/3.6.2/vendor/bin (added)
-
tags/3.6.2/vendor/composer (added)
-
tags/3.6.2/vendor/composer/ClassLoader.php (added)
-
tags/3.6.2/vendor/composer/InstalledVersions.php (added)
-
tags/3.6.2/vendor/composer/LICENSE (added)
-
tags/3.6.2/vendor/composer/autoload_classmap.php (added)
-
tags/3.6.2/vendor/composer/autoload_files.php (added)
-
tags/3.6.2/vendor/composer/autoload_namespaces.php (added)
-
tags/3.6.2/vendor/composer/autoload_psr4.php (added)
-
tags/3.6.2/vendor/composer/autoload_real.php (added)
-
tags/3.6.2/vendor/composer/autoload_static.php (added)
-
tags/3.6.2/vendor/composer/installed.json (added)
-
tags/3.6.2/vendor/composer/installed.php (added)
-
tags/3.6.2/vendor/composer/platform_check.php (added)
-
tags/3.6.2/vendor/indigophp (added)
-
tags/3.6.2/vendor/indigophp/hash-compat (added)
-
tags/3.6.2/vendor/indigophp/hash-compat/CHANGELOG.md (added)
-
tags/3.6.2/vendor/indigophp/hash-compat/LICENSE (added)
-
tags/3.6.2/vendor/indigophp/hash-compat/README.md (added)
-
tags/3.6.2/vendor/indigophp/hash-compat/Vagrantfile (added)
-
tags/3.6.2/vendor/indigophp/hash-compat/composer.json (added)
-
tags/3.6.2/vendor/indigophp/hash-compat/src (added)
-
tags/3.6.2/vendor/indigophp/hash-compat/src/hash_equals.php (added)
-
tags/3.6.2/vendor/indigophp/hash-compat/src/hash_pbkdf2.php (added)
-
tags/3.6.2/vendor/usrflo (added)
-
tags/3.6.2/vendor/usrflo/registered-domain-libs (added)
-
tags/3.6.2/vendor/usrflo/registered-domain-libs/.gitignore (added)
-
tags/3.6.2/vendor/usrflo/registered-domain-libs/PHP (added)
-
tags/3.6.2/vendor/usrflo/registered-domain-libs/PHP/effectiveTLDs.inc.php (added)
-
tags/3.6.2/vendor/usrflo/registered-domain-libs/PHP/regDomain.class.php (added)
-
tags/3.6.2/vendor/usrflo/registered-domain-libs/PHP/regDomain.inc.php (added)
-
tags/3.6.2/vendor/usrflo/registered-domain-libs/PHP/test-regDomain.php (added)
-
tags/3.6.2/vendor/usrflo/registered-domain-libs/PHP/test-regDomain.sh (added)
-
tags/3.6.2/vendor/usrflo/registered-domain-libs/README.txt (added)
-
tags/3.6.2/vendor/usrflo/registered-domain-libs/generateEffectiveTLDs.php (added)
-
trunk/FreeSSLAuto/src/Acme/AcmeV2.php (modified) (2 diffs)
-
trunk/FreeSSLAuto/src/Admin/ForceSSL.php (modified) (2 diffs)
-
trunk/FreeSSLAuto/src/Admin/GenerateSSLmanually.php (modified) (2 diffs)
-
trunk/FreeSSLAuto/src/Admin/HomeOptions.php (modified) (7 diffs)
-
trunk/auto-install-free-ssl.php (modified) (1 diff)
-
trunk/readme.txt (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
auto-install-free-ssl/trunk/FreeSSLAuto/src/Acme/AcmeV2.php
r2946395 r2952902 565 565 566 566 /** 567 * 568 * 569 * Generate SSL567 * Step 3 of Generate SSL 568 * Improved since 3.6.2 569 * 570 570 * @param $domains 571 571 * @param $reuseCsr … … 599 599 $this->logger->exception_sse_friendly( "Invalid response code: " . $this->client->getLastCode() . ", " . json_encode( $result ), __FILE__, __LINE__ ); 600 600 //since 3.6.1, Don't translate exception message 601 } 602 603 $location = $result['certificate']; 604 // waiting loop 605 $certificates = []; 606 while ( 1 ) { 607 //$this->client->getLastLinks(); 608 $result = $this->client->get( $location, null, true ); 609 $this->logger->log( __( "Location value", 'auto-install-free-ssl' ) . ": " . $location ); 610 611 if ( 202 === $this->client->getLastCode() ) { 612 $sec = __( "1", 'auto-install-free-ssl' ); 613 /* translators: %s: Number of second */ 614 $this->logger->log( sprintf( __( "Certificate generation pending, sleeping %s second.", 'auto-install-free-ssl' ), $sec ) ); 615 sleep( 1 ); 616 } elseif ( 200 === $this->client->getLastCode() ) { 617 $this->logger->log( __( "We have got a certificate! YAY!", 'auto-install-free-ssl' ) ); 618 $certificates = explode( "\n\n", $result ); 619 break; 601 return false; 602 } 603 604 605 if ( empty($result['certificate']) ) { 606 $this->logger->exception_sse_friendly( "The 'certificate' key (location value) is empty in the last response from Let's Encrypt™. Please try again after some time.", __FILE__, __LINE__ ); 607 return false; 608 } else { 609 $location = $result['certificate']; 610 // waiting loop 611 $certificates = []; 612 while ( 1 ) { 613 //$this->client->getLastLinks(); 614 $result = $this->client->get( $location, null, true ); 615 $this->logger->log( __( "Location value", 'auto-install-free-ssl' ) . ": " . $location ); 616 617 if ( 202 === $this->client->getLastCode() ) { 618 $sec = __( "1", 'auto-install-free-ssl' ); 619 /* translators: %s: Number of second */ 620 $this->logger->log( sprintf( __( "Certificate generation pending, sleeping %s second.", 'auto-install-free-ssl' ), $sec ) ); 621 sleep( 1 ); 622 } elseif ( 200 === $this->client->getLastCode() ) { 623 $this->logger->log( __( "We have got a certificate! YAY!", 'auto-install-free-ssl' ) ); 624 $certificates = explode( "\n\n", $result ); 625 break; 626 } else { 627 //$this->logger->exception_sse_friendly(__( "Can't get a certificate: HTTP code", 'auto-install-free-ssl' ) . ": ". $this->client->getLastCode(), __FILE__, __LINE__); 628 $this->logger->exception_sse_friendly( "Can't get a certificate: HTTP code: " . $this->client->getLastCode(), __FILE__, __LINE__ ); 629 //since 3.6.1, Don't translate exception message. 630 $certificates = []; 631 break; 632 //return false; 633 } 634 635 } 636 637 if ( empty($certificates) ) { 638 //$this->logger->exception_sse_friendly(__( "No certificates generated", 'auto-install-free-ssl' ), __FILE__, __LINE__); 639 $this->logger->exception_sse_friendly( "No certificates generated. Please try again.", __FILE__, __LINE__ ); 640 //since 3.6.1, Don't translate exception message. 641 return false; 620 642 } else { 621 //$this->logger->exception_sse_friendly(__( "Can't get a certificate: HTTP code", 'auto-install-free-ssl' ) . ": ". $this->client->getLastCode(), __FILE__, __LINE__); 622 $this->logger->exception_sse_friendly( "Can't get a certificate: HTTP code: " . $this->client->getLastCode(), __FILE__, __LINE__ ); 623 //since 3.6.1, Don't translate exception message. 624 } 625 626 } 627 628 if ( empty($certificates) ) { 629 //$this->logger->exception_sse_friendly(__( "No certificates generated", 'auto-install-free-ssl' ), __FILE__, __LINE__); 630 $this->logger->exception_sse_friendly( "No certificates generated", __FILE__, __LINE__ ); 631 //since 3.6.1, Don't translate exception message. 632 } 633 634 $this->logger->log( __( "Saving Certificate (CRT) certificate.pem", 'auto-install-free-ssl' ) ); 635 file_put_contents( $domainPath . DS . 'certificate.pem', $certificates[0] ); 636 $this->logger->log( __( "Saving (CABUNDLE) cabundle.pem", 'auto-install-free-ssl' ) ); 637 file_put_contents( $domainPath . DS . 'cabundle.pem', $certificates[1] ); 638 $this->logger->log( __( "Saving fullchain.pem", 'auto-install-free-ssl' ) ); 639 file_put_contents( $domainPath . DS . 'fullchain.pem', $result ); 640 /* translators: "Let's Encrypt" is a nonprofit SSL certificate authority. */ 641 $this->logger->log_v2( 'SUCCESS', __( "Done!!!! Let's Encrypt™ ACME V2 SSL certificate successfully issued!!", 'auto-install-free-ssl' ), [ 642 'event' => 'gist', 643 ] ); 644 update_option( 'aifs_number_of_ssl_generated', get_option( 'aifs_number_of_ssl_generated' ) + 1 ); 645 //@since 3.4.0 646 delete_option( 'aifs_is_generated_ssl_installed' ); 647 //@since 3.4.0 648 return true; 643 $this->logger->log( __( "Saving Certificate (CRT) certificate.pem", 'auto-install-free-ssl' ) ); 644 file_put_contents( $domainPath . DS . 'certificate.pem', $certificates[0] ); 645 $this->logger->log( __( "Saving (CABUNDLE) cabundle.pem", 'auto-install-free-ssl' ) ); 646 file_put_contents( $domainPath . DS . 'cabundle.pem', $certificates[1] ); 647 $this->logger->log( __( "Saving fullchain.pem", 'auto-install-free-ssl' ) ); 648 file_put_contents( $domainPath . DS . 'fullchain.pem', $result ); 649 /* translators: "Let's Encrypt" is a nonprofit SSL certificate authority. */ 650 $this->logger->log_v2( 'SUCCESS', __( "Done!!!! Let's Encrypt™ ACME V2 SSL certificate successfully issued!!", 'auto-install-free-ssl' ), [ 651 'event' => 'gist', 652 ] ); 653 update_option( 'aifs_number_of_ssl_generated', get_option( 'aifs_number_of_ssl_generated' ) + 1 ); 654 //@since 3.4.0 655 delete_option( 'aifs_is_generated_ssl_installed' ); 656 //@since 3.4.0 657 return true; 658 } 659 660 } 661 649 662 } 650 663 -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Admin/ForceSSL.php
r2946395 r2952902 370 370 371 371 if ( strcmp( $ssl_details['domain_site']['error_cause'], $ssl_details['domain_other_version']['error_cause'] ) == 0 ) { 372 $text_display .= __( "Error cause", 'auto-install-free-ssl' ) . ": " . $ssl_details['domain_site']['error_cause'] . ".";372 $text_display .= "<br />" . __( "Error cause", 'auto-install-free-ssl' ) . ": " . $ssl_details['domain_site']['error_cause'] . "."; 373 373 } else { 374 $text_display .= __( "Error cause for", 'auto-install-free-ssl' ) . " " . $ssl_details['domain_site']['url'] . ": " . $ssl_details['domain_site']['error_cause'] . ". " . __( "Error cause for", 'auto-install-free-ssl' ) . " " . $ssl_details['domain_other_version']['url'] . ": " . $ssl_details['domain_other_version']['error_cause'] . ".";374 $text_display .= "<br />" . __( "Error cause for", 'auto-install-free-ssl' ) . " " . $ssl_details['domain_site']['url'] . ": " . $ssl_details['domain_site']['error_cause'] . ". " . __( "Error cause for", 'auto-install-free-ssl' ) . " " . $ssl_details['domain_other_version']['url'] . ": " . $ssl_details['domain_other_version']['error_cause'] . "."; 375 375 } 376 376 … … 434 434 update_option( 'home', str_ireplace( 'http:', 'https:', get_option( 'home' ) ) ); 435 435 //redirect to plugin main page, so that HTTPS be forced immediately. This will send the user to the login page over HTTPS. 436 436 437 if ( !is_ssl() ) { 437 438 //$redirect_url = "https://".aifs_get_domain()."/wp-login.php?redirect_to=".urlencode(admin_url('admin.php?page=auto_install_free_ssl')); 438 439 wp_redirect( admin_url( 'admin.php?page=auto_install_free_ssl' ) ); 440 exit; 439 441 } 442 440 443 } else { 441 444 //Update siteurl and home options with HTTP 442 445 update_option( 'siteurl', str_ireplace( 'https:', 'http:', get_option( 'siteurl' ) ) ); 443 446 update_option( 'home', str_ireplace( 'https:', 'http:', get_option( 'home' ) ) ); 447 $success_text = __( "Force HTTPS has been Deactivated successfully, and you have reverted to HTTP.", 'auto-install-free-ssl' ); 448 $this->logger->write_log( 'info', $success_text, [ 449 'event' => 'ping', 450 ] ); 444 451 //Display success message (Deactivated) 445 aifs_add_flash_notice( __( "Force HTTPS has been Deactivated successfully, and you have reverted to HTTP.", 'auto-install-free-ssl' ));452 aifs_add_flash_notice( $success_text ); 446 453 } 447 454 -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Admin/GenerateSSLmanually.php
r2946395 r2952902 1175 1175 if ( $freessl->step3GenerateSSL( $this->return_array_step1['domains_array'], false, $this->return_array_step1 ) ) { 1176 1176 //return true; 1177 //reload option to keep 'response_final' saved in step3GenerateSSL 1178 $this->return_array_step1 = get_option('aifs_return_array_step1_manually'); 1179 1177 1180 //update option 1178 1181 $this->return_array_step1['current_step_number'] = 3; … … 1195 1198 //return false; 1196 1199 /* translators: %s: A domain name, e.g., example.com */ 1197 echo "<h3 style='color: red'>". sprintf(__("Sorry, the SSL certificate was NOT issued to %s due to an error. Please check the log for details.", 'auto-install-free-ssl'), ("<em>" . $this->return_array_step1['domains_array'][0] . "</em>")) ."</h3>"; 1200 $error_text .= "<span style='color: red'>". sprintf(__("Sorry, the SSL certificate was NOT issued to %s due to an error. Please check the log for details.", 'auto-install-free-ssl'), ("<em>" . $this->return_array_step1['domains_array'][0] . "</em>")) ."</span>"; 1201 $error_text .= " <span style='font-weight: bold;'>". __("Please try again later.", 'auto-install-free-ssl') ."</span>"; 1202 1203 //$this->logger->log_v2( 'error', sprintf("Sorry, the SSL certificate was NOT issued to %s due to an error. Please try again after some time.", ("<em>" . $this->return_array_step1['domains_array'][0] . "</em>")) ); 1204 1205 aifs_add_flash_notice($error_text, "error"); 1206 $redirect_url = admin_url('admin.php?page=aifs_generate_ssl_manually'); 1207 if($_POST['aifs_challenge_type'] == "dns-01"){ 1208 $redirect_url .= '&tab='.$_POST['aifs_challenge_type']; 1209 } 1210 wp_redirect($redirect_url); 1211 exit; 1198 1212 } 1199 1213 -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Admin/HomeOptions.php
r2921218 r2952902 29 29 30 30 use AutoInstallFreeSSL\FreeSSLAuto\Acme\Factory as AcmeFactory ; 31 use AutoInstallFreeSSL\FreeSSLAuto\Logger ; 31 32 /** 32 33 * Home page options … … 37 38 public $factory ; 38 39 public $app_settings ; 40 private $logger ; 39 41 /** 40 42 * Start up … … 47 49 $this->factory = new Factory(); 48 50 $this->app_settings = aifs_get_app_settings(); 51 $this->logger = new Logger(); 49 52 add_action( 'admin_enqueue_scripts', array( $this, 'countdown_js_script' ) ); 50 53 } … … 57 60 public function display() 58 61 { 62 $this->log_all_ca_server_response_handler(); 59 63 if ( aifs_is_free_version() ) { 60 64 … … 71 75 } else { 72 76 wp_redirect( admin_url( 'admin.php?page=aifs_generate_ssl_manually' ) ); 77 exit; 73 78 } 74 79 … … 218 223 $start_time = get_option( 'aifs_comparison_table_promo_start_time' ); 219 224 220 if ( $this->factory->is_cpanel() && time() < $start_time + AIFS_COUNTDOWN_DURATION && (get_option( 'aifs_premium_plan_selected' ) >= 1 && time() < strtotime( "January 1, 2024" ) || time() > strtotime( "November 1, 2022" ) && time() < strtotime( "January 1, 2024" )) ) {221 $coupon_code = "20AutoInstall";225 if ( $this->factory->is_cpanel() && time() > strtotime( "August 19, 2023" ) && time() < strtotime( "September 19, 2023" ) ) { 226 $coupon_code = false; 222 227 echo '<div id="aifs-promo" class="aifs-promo"><p style="font-size: medium; margin: 0;">' ; 223 228 echo '<span class="dashicons dashicons-arrow-down-alt" style="font-size: xx-large; color: #5F97FB;"></span> ' ; 224 $percentage = __( "20%", 'auto-install-free-ssl' ); 225 /* translators: %1$s: HTML code to make the color red of the text '%2$s discount!'. Please keep its order the same. %2$s: Discount percentage (includes % sign) */ 226 echo sprintf( __( 'Select any Pro plan asap to grab a %1$s %2$s discount!', 'auto-install-free-ssl' ), "<span style='color: red;'>", $percentage ) . "</span>" ; 227 echo '<img src="' . AIFS_URL . 'assets/img/fire.webp" style="margin-left: 2%; width 20px; height: 20px;"><span class="expires-in">' . __( "expires in", 'auto-install-free-ssl' ) . ' <span id="countdown" style=""></span></span>' ; 229 echo '<span class="expires-in" style="margin-right: 1%;">Limited time offer</span> 30% discount coupon: SUMMER_30, 40% discount coupon (lifetime only): SUMMER_40' ; 228 230 echo '</p></div>' ; 229 echo '<script type="text/javascript">' . $this->countdown_js_script() . '</script>' ;230 //add_action( 'admin_enqueue_scripts', array($this, 'countdown_js_script') );231 231 } else { 232 $coupon_code = false; 232 233 if ( $this->factory->is_cpanel() && time() < $start_time + AIFS_COUNTDOWN_DURATION && (get_option( 'aifs_premium_plan_selected' ) >= 1 && time() < strtotime( "January 1, 2024" ) || time() > strtotime( "November 1, 2022" ) && time() < strtotime( "January 1, 2024" )) ) { 234 $coupon_code = "20AutoInstall"; 235 echo '<div id="aifs-promo" class="aifs-promo"><p style="font-size: medium; margin: 0;">' ; 236 echo '<span class="dashicons dashicons-arrow-down-alt" style="font-size: xx-large; color: #5F97FB;"></span> ' ; 237 $percentage = __( "20%", 'auto-install-free-ssl' ); 238 /* translators: %1$s: HTML code to make the color red of the text '%2$s discount!'. Please keep its order the same. %2$s: Discount percentage (includes % sign) */ 239 echo sprintf( __( 'Select any Pro plan asap to grab a %1$s %2$s discount!', 'auto-install-free-ssl' ), "<span style='color: red;'>", $percentage ) . "</span>" ; 240 echo '<img src="' . AIFS_URL . 'assets/img/fire.webp" style="margin-left: 2%; width 20px; height: 20px;"><span class="expires-in">' . __( "expires in", 'auto-install-free-ssl' ) . ' <span id="countdown" style=""></span></span>' ; 241 echo '</p></div>' ; 242 echo '<script type="text/javascript">' . $this->countdown_js_script() . '</script>' ; 243 //add_action( 'admin_enqueue_scripts', array($this, 'countdown_js_script') ); 244 } else { 245 $coupon_code = false; 246 } 247 233 248 } 234 249 … … 758 773 759 774 /** 775 * Log or stop logging all responses received from the Let's Encrypt™ server. 776 * @since 3.6.2 777 */ 778 public function log_all_ca_server_response_handler() 779 { 780 781 if ( isset( $_GET['log_all_ca_server_response'] ) ) { 782 783 if ( aifs_is_free_version() && get_option( 'aifs_free_plan_selected' ) ) { 784 $redirect_url = admin_url( 'admin.php?page=aifs_generate_ssl_manually' ); 785 } else { 786 $redirect_url = admin_url( 'admin.php?page=auto_install_free_ssl' ); 787 } 788 789 $common_text = __( "Settings successfully updated!", 'auto-install-free-ssl' ) . " "; 790 if ( $_GET['log_all_ca_server_response'] == "yes" ) { 791 792 if ( update_option( 'aifs_log_all_ca_server_response', 1 ) ) { 793 $success_text = $common_text . __( "We'll log all responses from the Let's Encrypt™ server.", 'auto-install-free-ssl' ); 794 $this->logger->write_log( 'info', $success_text, [ 795 'event' => 'ping', 796 ] ); 797 aifs_add_flash_notice( $success_text ); 798 wp_redirect( $redirect_url ); 799 exit; 800 } 801 802 } 803 if ( $_GET['log_all_ca_server_response'] == "no" ) { 804 805 if ( delete_option( 'aifs_log_all_ca_server_response' ) ) { 806 $success_text = $common_text . __( "We have stopped logging all responses from the Let's Encrypt™ server.", 'auto-install-free-ssl' ); 807 $this->logger->write_log( 'info', $success_text, [ 808 'event' => 'ping', 809 ] ); 810 aifs_add_flash_notice( $success_text ); 811 wp_redirect( $redirect_url ); 812 exit; 813 } 814 815 } 816 } 817 818 } 819 820 /** 760 821 * Display message after successful payment 761 822 * -
auto-install-free-ssl/trunk/auto-install-free-ssl.php
r2946395 r2952902 7 7 * Plugin URI: https://freessl.tech 8 8 * Description: Generate & install Free SSL Certificates, activate force HTTPS redirect with one click to fix insecure links & mixed content warnings, and get automatic Renewal Reminders. 9 * Version: 3.6. 19 * Version: 3.6.2 10 10 * Requires at least: 4.1 11 11 * Requires PHP: 5.6 -
auto-install-free-ssl/trunk/readme.txt
r2946402 r2952902 7 7 Requires at least: 4.1 8 8 Tested up to: 6.3 9 Stable tag: 3.6. 19 Stable tag: 3.6.2 10 10 Requires PHP: 5.6 11 11 Development location: https://freessl.tech … … 27 27 28 28 29 ` 34 3,500+ DOWNLOADS!!`29 ` 348,500+ DOWNLOADS!!` 30 30 31 31 … … 50 50 * One-click revert to HTTP if required. 51 51 * Automatic renewal reminder by email and admin notice before the SSL expiry date. 52 The free SSL certificate issued by Let's Encrypt™ expires in 90 days. They recommend renewing 30 days before expiry. Please check the FAQ section to learn why the lifetime is 90 days. 52 53 53 54 … … 73 74 * SSL installation training for non-cPanel websites. 74 75 * If needed, you can revoke any SSL certificate and change your Let's Encrypt™ account key. 76 If your WordPress website is hosted on a VPS or dedicated server and you don't have cPanel, **Automatic Installation** of the Free SSL Certificate is still possible. Please get in touch with us after purchase. 75 77 76 78 [BUY PREMIUM VERSION](https://freessl.tech/free-ssl-certificate-for-wordpress-website/?utm_source=wp_org&utm_medium=description&utm_campaign=aifs_free&utm_content=premium_features) … … 261 263 1. Now refresh the website's home page. You'll see the padlock. 262 264 265 266 267 **Troubleshooting** 268 269 Access the 'Log' menu within the ‘Auto-Install Free SSL’ menu in the left-hand sidebar. Be sure to review the log for any insights. 270 271 If you encounter issues with the Let's Encrypt™ API connection and wish to log Let's Encrypt™ server response details for each API call, you can achieve this by writing the following URL in the address bar by replacing 'www.example.com' with your domain name, and hit enter: 272 273 ` http://www.example.com/wp-admin/admin.php?page=auto_install_free_ssl&log_all_ca_server_response=yes ` 274 275 To stop logging all responses from the Let's Encrypt™ server, replace ‘yes’ with ‘no’ in the above URL. 276 277 Please check the existing topics in the WordPress [support forum](https://wordpress.org/support/plugin/auto-install-free-ssl) before creating a new topic for support or reporting a bug. 278 263 279 264 280 … … 307 323 Please visit the plugin's 'Force HTTPS' page and click the 'Activate Force HTTPS' button. 308 324 325 = After installing an SSL certificate, I clicked the 'Activate Force HTTPS' button. But I got this error: "No valid SSL is installed". How can I fix it? = 326 327 This is a temporary issue. You may wait 24 hours or follow these steps: 328 329 Please access your website with HTTPS (e.g., https://example.com). If you are sure that the SSL certificate is installed correctly and the padlock is visible, please log in to your WordPress dashboard, open a new tab, write the following URL in the address bar by replacing 'www.example.com' with your domain name, and hit enter: 330 331 ` http://www.example.com/wp-admin/admin.php?page=aifs_force_https&aifsaction=aifs_force_https_override&checked_ssl_manually=done&valid_ssl_installed=yes ` 332 309 333 = How do I deactivate the HTTPS redirect? = 310 334 … … 312 336 313 337 Alternatively, open the email you received after activating the HTTPS redirect (or Force HTTPS) and click the link to deactivate HTTPS redirect and revert to HTTP. The subject line of that email is "'Auto-Install Free SSL' has activated Force HTTPS on your website YourDomain.com". [Replace YourDomain.com with your WordPress website's domain]. 338 339 = Are my website's WWW and non-WWW versions included in the free SSL certificate? = 340 341 If your website is accessible with WWW and non-WWW versions of the domain name (e.g., www.example.com and example.com) and both A record points to the same IP address, our plugin will include both versions in the free SSL certificate. 342 343 = Why is the validity of the free SSL certificate 90 days? Is it a trial? = 344 345 The validity period of free SSL certificates being 90 days is not a trial but rather a design choice of Let's Encrypt™ that prioritizes security. With shorter validity periods, Let's Encrypt™ encourages frequent certificate renewal, ensuring that websites always have up-to-date and secure certificates. This approach reduces the potential impact of compromised certificates. 346 347 The [premium version](https://freessl.tech/free-ssl-certificate-for-wordpress-website/?utm_source=wp_org&utm_medium=faq&utm_campaign=aifs_free&utm_content=faq_11) of this plugin renews SSL certificates automatically. Automated renewal processes also make it easier for website owners to maintain security without manual intervention. While the 90-day validity might seem short, the automated renewal process ensures seamless and continuous protection for your website's users. 348 349 Please [click here](https://letsencrypt.org/2015/11/09/why-90-days.html) to learn the statement of Let's Encrypt™. 350 351 = Does this plugin generate free SSL certificates for bare IP addresses (e.g., https://204.12.132.37)? = 352 353 Let's Encrypt™ issues SSL certificates for domain names rather than bare IP addresses. Free SSL certificates are designed to secure domain names, providing encrypted connections between users and websites. Using SSL certificates with domain names is considered the industry's best practice. 354 355 If you're looking to secure a website, it's recommended to associate a domain name with the IP address rather than using the bare IP address. This enhances the user experience and aligns with security and usability standards. 314 356 315 357 = [Pro] Why do you need my cPanel password (or API Token) when other Let's Encrypt clients don't? =
Note: See TracChangeset
for help on using the changeset viewer.