wp-encrypt icon indicating copy to clipboard operation
wp-encrypt copied to clipboard

Let’s Encrypt: Registration key is already in use

Open beatelite opened this issue 6 years ago • 9 comments

I added the new beta 08. I had to define the danger_zone constant and hard reset the plugin so I could reinit the certs since reissuing them wasn't working (kept getting "Challenge self check failed for domain" error). Now when I register the account I get:

"Let’s Encrypt: Registration key is already in use"

Any suggestions on where to dig to fix this?

beatelite avatar Jan 11 '18 00:01 beatelite

I'm also seeing this error. Here's what I did:

  1. Installed the plugin via the Wordpress backend "Add plugin" and searching for WP Encrypt. Did NOT install manually.
  2. Went to the admin settings page and entered the relevant fields and pressed the Register Account button.
  3. Got an Unknown Error banner on the admin settings page.
  4. Left the admin settings page, came back. Pressed the Register Account button.
  5. Got the Registration key is already in use error. Now I get this error every time I press that button.

mterrel avatar Feb 01 '18 02:02 mterrel

+1

hardcore avatar Feb 10 '18 12:02 hardcore

I have such mistake too! Please correct it!

BlackGrizzly avatar Feb 13 '18 12:02 BlackGrizzly

You can SSH into your server and delete the letsencrypt folder. This will delete the registration key and will generate a new one.

nvonbulow avatar Feb 22 '18 15:02 nvonbulow

@nvonbulow . Tried that and still having the issue. Did you try it?

beatelite avatar Feb 25 '18 21:02 beatelite

@beatelite It worked, but there are different errors I get (see #56) and then it goes back to that again. They seem to be two different yet connected issues.

nvonbulow avatar Feb 25 '18 23:02 nvonbulow

+1 Anybody help please

Mamishev avatar Mar 06 '18 10:03 Mamishev

+1

hadirsa avatar Mar 17 '18 12:03 hadirsa

Here's a workaround written by robmason38, his comment can be found on this thread

Comment out the below lines in wp-encrypt -> CertificateManager.php

/**
		 * 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;
		}

elilambnz avatar Apr 30 '18 23:04 elilambnz