Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Here’s the path to CertificateManager.php

    wp-content/plugins/wp-encrypt/inc/WPENC/Core/CertificateManager.php

    @robmason38 ‘s working Horrible Hack

    Comment these lines

    if ( isset( $response['status'] ) && 200 !== absint( $response['status'] ) ) {
    				return $this->parse_wp_error( $response );
    			}
    /**
    		 * Retrieves information about a Let's Encrypt account.
    		 *
    		 * @since 1.0.0
    		 * @access public
    		 *
    		 * @param string $location Endpoint URL for the account.
    		 * @return array|WP_Error The response if successful, an error object otherwise.
    		 */
    		public function get_account( $location ) {
    			$response = Client::get()->signed_request( $location, array(
    				'resource' => 'reg',
    			) );
    
    			if ( is_wp_error( $response ) ) {
    				return $response;
    			}		
    			
    			
    			/* Horrible Hack to allow account registration to proceed
    			*
    			if ( isset( $response['status'] ) && 200 !== absint( $response['status'] ) ) {
    				return $this->parse_wp_error( $response );
    			}
    			*
    			*/
    			
    			$response['location'] = $location;
    
    			return $response;
    		}
Viewing 2 replies - 1 through 2 (of 2 total)