Title: Invalid API Key
Last modified: August 20, 2016

---

# Invalid API Key

 *  [iurisilvio](https://wordpress.org/support/users/iurisilvio/)
 * (@iurisilvio)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/invalid-api-key/)
 * My valid API key is not accepted. :/
 * [http://wordpress.org/extend/plugins/wpmandrill/](http://wordpress.org/extend/plugins/wpmandrill/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Kaitlin A.](https://wordpress.org/support/users/mc_kaitlin/)
 * (@mc_kaitlin)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/invalid-api-key/#post-3170845)
 * Are you getting an error that the API key is invalid or some other error?
 * Can you make sure that there aren’t any extra spaces on either side if you’re
   pasting the API key? If that still doesn’t work, if you set the WP_DEBUG constant(
   defined in your wp-config.php file) to true, you’ll see some messages added by
   the plugin in key parts of the process for the logs.
 *  Thread Starter [iurisilvio](https://wordpress.org/support/users/iurisilvio/)
 * (@iurisilvio)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/invalid-api-key/#post-3170846)
 * Yes, I’m sure the key does not have extra spaces. Running in debug mode, I didn’t
   found any debug message. :/
 *  [haxxxton](https://wordpress.org/support/users/haxxxton/)
 * (@haxxxton)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/invalid-api-key/#post-3170861)
 * I am getting the same issue.. Created new API key on Mandrill.com then straight
   copy and paste into the wpMandrill plugin.. getting the same error message.. 
   Invalid API key.
 *  Plugin Author [MC_Will](https://wordpress.org/support/users/mc_will/)
 * (@mc_will)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/invalid-api-key/#post-3170871)
 * Can you get in touch with me at will (at) mailchimp com ?
 * Send me the API and a few details about your platform: OS, wp engine if apply,
   etc…
 *  [Bruno Braga](https://wordpress.org/support/users/bruno-braga/)
 * (@bruno-braga)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/invalid-api-key/#post-3170894)
 * the SSL certificate http-request response is invalid due to an invalid certificate
   error (we should catch this as an exception and log it instead or maybe be a 
   bit more verbose to the user why this happens), I added:
 *     ```
       curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
       curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
       ```
   
 * to the file _wpmandrill/lib/mandrill.class.php_ after line 429, solved my problem.
   🙂 I applied this on my dev env, I will check again once I deploy the original
   mandrill plugin on production to make sure it works there as expected.
 *  [otravers](https://wordpress.org/support/users/otravers/)
 * (@otravers)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/invalid-api-key/#post-3170898)
 * I’m running into this issue too in my local dev environment which is a Windows
   7 PC running the XAMPP stack with PHP 5.3.8. In our staging environment which
   runs Centos and PHP 5.3.18, the same Mandrill API key was accepted without a 
   hitch. Both WP installs are similar (local dev has a few extra plugins) with 
   WP 3.5 and wpMandrill 1.23.
 *  [tigransloyan](https://wordpress.org/support/users/tigransloyan/)
 * (@tigransloyan)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/invalid-api-key/#post-3170903)
 * hi Will, I have the same issue, I e-mailed you at will (at) mailchimp com with
   screenshots and more details, can you please let me know if you are still maintaining
   this plugin?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Invalid API Key’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpmandrill_171717.svg)
 * [wpMandrill](https://wordpress.org/plugins/wpmandrill/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpmandrill/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpmandrill/)
 * [Active Topics](https://wordpress.org/support/plugin/wpmandrill/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpmandrill/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpmandrill/reviews/)

 * 7 replies
 * 7 participants
 * Last reply from: [tigransloyan](https://wordpress.org/support/users/tigransloyan/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/invalid-api-key/#post-3170903)
 * Status: not resolved