Jason Palmer, CPA, CITP

Cyber Insurance Auditing

  • Home
  • Blog
  • Services
    • Break/Fix
    • Network Infrastructure
    • Installation
    • Web Hosting
    • Web Applications
  • Consulting
  • Vendors
  • U.S. Federal Courts
  • About Us
  • Contact Us
  • Product Showcases
You are here: Home / Archives for Digital Certificates

WordPress Twitter Exception Message: SSL certificate problem

July 26, 2013 By Jason Palmer Leave a Comment

Twitter LogoMost plugins for WordPress require little if any technical knowledge to install and configure.  Sometimes you have to look under the hood and check the engine yourself to make a plugin work correctly.

Recently the Genesis Framework “Getting Latest Tweets” Plugin widget was updated and site owners started to report SSL Certificate problems.  The Getting Latest Tweets plugin securely connects your WordPress site to your Twitter Account and displays your latest Tweets on your web site.  To see how this works, visit the home page of www.jasonpalmer.com and look in the lower right hand corner to see my latest Tweets.  (You can learn more and download the WordPress “Getting Latest Tweets” plugin here.)

If after installing and configuring the “Getting Latest Tweets” plugin you see the message “No Tweets Found in the spot where it is supposed to display the latest Tweets on your WordPress site, read on to learn how to fix the problem.

The error message appears after installing the “Getting Latest Tweets” plugin and saving the Twitter Application API information.  These are the keys and application name information obtained from your Twitter Developer Dashboard.  (How to do this is all described with screen shots below the configuration panel of this plugin.)

You will usually one of the following two error messages or similar variation:

“Twitter Exception Message: SSL certificate problem”
or
“Twitter Exception Message: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed”

The reason for this error message is that some web servers do not have the latest Certificate Authority file installed.  Digital Certificates authenticate the owners of web sites.  To complete this process when making a request from our web server to another web server, we need to make sure that the issuer of the digital certificate that we receive from the web site we visit is authentic.  The Certificate Authority file contains this information about well-known companies that issue SSL Digital Certificates to secure web sites. (For a technical explanation, visit Wikipedia here.)

Plugin authors, if they want to make secure connections from your web server to another web server, such as in the case of “Getting Latest Tweets” from Twitter to post automatically on your web site, usually include the latest Certificate Authority file with the installation of their plugin.  “Getting Latest Tweets” did not do this.

The solution is fairly simple and will work for most LAMP (Linux/Apache/MySQL/PHP) and WAMP (Windows/Apache/MySQL/PHP) implementations.

We need to get a good, current copy of a Certificate Authority file from a trusted source, place it on our Web Server in the appropriate directory folder, then tell the programs that need access to this Certificate Authority file where to find it.

NOTE:  If you understand the problem as described above but have absolutely no idea what anything below means, ask the company that hosts your web site to assist you or correct the problem for you.

WARNING:  Make sure you have a valid backup copy of your PHP.INI file BEFORE you proceed!

First, get the latest cacert.pem file from:

http://www.curl.haxx.se/docs/caextract.html

Look to see if you have a \curl or \Tools\curl or similarly named directory on your Web Server.  You can also search for “curl” to help find an appropriate directory.

Warning:  Do not replace the .pem file that exists in any plugin directory.  Only replace the .pem file in a common server directory, like in the example below.

Next: Simply open up your PHP.INI file and add the following line:

curl.cainfo = “PATH_TO/cacert.pem”

Example:

I am running the WAMPDeveloper Stack on Windows from DevSide.net

I added the following line at the bottom of my PHP.INI file

curl.cainfo = “C:\WampDeveloper\Tools\curl\cacert.pem”

Then I placed the cacert.pem downloaded above in:

c:\wampdeveloper\tools\curl

Works perfectly for most stacks, BUT NOT ALL, and resolves the issue for many plugins looking for an updated Certificate Authority File that are returning errors similar to the one at the top of this article.

You may stop reading this article now unless you really, really want the ultra-technical details and are an IT Professional.

IT Professionals, please continue:

If you are looking to understand how to update cURL the library utility that many plugins use to connect and transfer data to and from other sites securely, additional references are below.

It is usually the responsibility of the developer of the application/plug-in to explicitly point to a current cacert.pem file – especially for WordPress users running on Windows AMP stacks such as Bitnami or WampDeveloper (Devside.net).

Backupbuddy, Vaultpress, and Google Analytics plug-in’s all distribute a cacert.pem file and I assume use the proper CURL Reference such as:

curl_setopt($ch, CURLOPT_CAINFO, ’C:/accessible/by/apache/cacert.pem);
and
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);

The following sites are presented for reference and additional configuration details:

The Main Home Page for cURL:
http://curl.haxx.se/docs/manpage.html

A good Mozilla.org Certificate Authority CA Cert Bundle file is available here:
http://www.curl.haxx.se/docs/caextract.html

The page explains in depth how to make SSL Server to Server Connections:
http://curl.haxx.se/docs/sslcerts.html

How do I update root certificates in Apache/PHP/cURL environment?
http://kb.ucla.edu/articles/how-do-i-update-root-certificates-in-apachephpcurl-environment

How do I use cURL in PHP on Windows?
http://kb.ucla.edu/articles/how-do-i-use-curl-in-php-on-windows

Filed Under: Wordpress Tagged With: Digital Certificates, pem file, Ssl Certificate, SSL Certificate Problem, Twitter, Twitter Exception Message, wordpress, Wordpress Certificate Authority

Securing your Email – Assigning and Using a Digital Certificate for Secure Email in Thunderbird

August 28, 2012 By Jason Palmer 1 Comment

Thunderbird Secure EmailIn order to use a Digital Certificate for Secure Email, you need to install the Certificate in to Thunderbird.  Installing the Certificate is straightforward.  Unfortunately, to use PGP – Public Key and Private Key Encryption in Thunderbird takes a little bit of effort to setup and install.

The steps are clearly defined with Screen Shots at the Thunderbird Documentation Site:

https://support.mozillamessaging.com/en-US/kb/digitally-signing-and-encrypting-messages

In short, Thunderbird uses the PGP (Pretty Good Privacy) Protocol to Encrypt and Digitally Sign email messages implemented through Open Source software.  The two required components are GnuPG: (GNU Privacy Guard): a free software implementation of the commercial version of PGP and the free Enigmail Thunderbird add-on.  (An add-on is small helper application software program that “adds-on” specific functionality.)
To learn more about Public Key and Private Key encryption read my article, “Securing your Email – Understanding Public Key and Private Key Encryption.”

In the documentation referenced above, you download the appropriate version of GnuPG for Windows, Mac, or Linux, the follow the instructions for installing the Enigmail Add-on.

Next, you create your Public Key and Private Key using a Key Generation Wizard.  Then you have the option of setting your configuration to sign all of your outgoing Email with your Digital Signature or on a per message basis.  This operates pretty much the same way in every Email client regardless of vendor.

Digitally signing a messages is as easy as selecting, “Sign Message” from the NEW OpenPGP tab on your Thunderbird Menu Bar.  Same holds true for “Encrypting” a message.

As with all Public Key and Private Key encryption, when you Digitally Sign an email, you must make sure to attach your Public Key with your message. This allows the Recipient to save your Public Key so that they can encrypt an email message to you.  It also allows them to Authenticate an email Digitally Signed by you.

When you receive an email encrypted with your Public Key, you will use your Private Key Passphrase to decrypt the message and read it.  Once both you and your Recipient have each other’s Public Key’s you can start to send and receive Encrypted and Digitally Signed email at will.

The Thunderbird OpenPGP add-on makes Digitally Signing, sending and receiving Encypted Email a breeze.

GnuPG Project Information
http://www.gnupg.org/

Enigmail Information
http://www.enigmail.net

 

Filed Under: Security, Tech in Plain English Tagged With: Cryptographic Software, Digital Certificate for Secure Email, Digital Certificates, Digital Signature, Email, Encryption, Gnu Privacy Guard, Key Encryption, Mozilla Thunderbird, Private Key Encryption, Thunderbird

Securing your Email – Assigning and Using a Digital Certificate for Secure Email in Outlook

August 27, 2012 By Jason Palmer Leave a Comment

Digital SignatureIn order to use a Digital Certificate for Secure Email, you need to install the Certificate in to your specific version of Outlook and assign it to the correct profile.  This is usually the default profile if you are the only one that uses your copy of Microsoft Outlook.

In most cases, when you retrieve the Digital Certificate for Secure Email, the Internet Explorer Web Browser will automatically store it in the Windows Digital Certificate Store for you.  Most editions of Microsoft Outlook can automatically access the Microsoft Windows Digital Certificate Store.  If for some reason the Digital Certificate for Secure Email does not properly appear visible in a version of Outlook, use the tutorials below to verify the settings.

If you used FireFox to request and retrieve your Digital Certificate for Secure Email, you may need to Export/Backup then Import/Restore the Digital Certificate for Secure Email in to Internet Explorer so that it is visible to Microsoft Windows Digital Certificate Store.

Please visit the following links for excellent tutorials on the process.

Outlook 2003
https://www.globalsign.com/support/personal-certificate/per_outlook03.html

Outlook 2007
https://www.globalsign.com/support/personal-certificate/per_outlook07.html

Outlook 2010
https://support.comodo.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=1348

Outlook Express – Versions 5 and 6
http://www.comodo.com/support/products/email_certs/oe_5_6.php

Microsoft Outlook 98 – 2000
https://www.globalsign.com/support/personal-certificate/per_outlook9800.php

Windows Mobile PDA
https://www.globalsign.com/support/personal-certificate/per_wm_pda.php

In general, to Digitally Sign or Encrypt an email message, when composing the message look under the OPTIONS tab,  – More Options, Security Settings, or Permissions – depending on your version of Outlook. There you will be presented with the option to Digitally Sign and/or Encrypt your message.

REMEMBER:  Before you can encrypt a message to a Recipient, you must have that Recipients PUBLIC key.  To exchange your key with a potential recipient, send him or her any email message that is Digitally Signed.  This message will include your PUBLIC key and for future Authentication, allow the Recipient to store your key in his or her contact list. Then, the Recipient should reply back to you with his or her Public key.  Once you have your intended Recipients Public Key, you can encrypt your email communications on a selective basis and vice-versa.
To learn more about Public Key and Private Key encryption read my article, “Securing your Email – Understanding Public Key and Private Key Encryption.”

Filed Under: Security, Tech in Plain English Tagged With: A Digital, Digital Certificate for Secure Email, Digital Certificates, Digital Signature, Email, Encryption, Outlook, Outlook 2003, Outlook 2007, Outlook 2010, Public Key Certificate

Securing your Email – Digital Certificate for Secure Email

August 23, 2012 By Jason Palmer Leave a Comment

HTTPS SSL Computer CubeA Digital Certificate for Secure Email enables you to digitally sign your email and authenticate that the message was actually sent from your email account.  Optionally, you can also encrypt the email message to secure it against unauthorized viewing.  (Encryption of email will be discussed in a future article.)

A Digital Certificate for Secure Email is issued by one of the well-known Certificate Authorities, the same group of companies that issue SSL (Secure Socket Layer) Certificates that encrypt web browser communications.  (The “lock” in your browser when connected over HTTPS:// )

A Class 1 Certificate requires only that you enter your First Name, Last Name, Email Address and a pass-phrase which secures the Certificate itself from unauthorized use or for revocation if the Certificate is compromised or lost.  The only Authentication performed is that the email address submitted is valid and that you have access to that email account to retrieve the Certificate.  It is important to note that the Certificate is ONLY validating the existence of the email address.  Anyone who has access to the specific email account can request a Certificate and can most likely use it to authenticate a message sent from that specific email account.  This is critical to understand if you share your email account with others.

For many non-business users, a Class 1 Certificate is adequate and available at no cost from a Comodo, a Certificate Authority Provider.  (There are a few other free providers but none as quick or as easy to use as Comodo.)   Most people have an email account that they do not share and that is properly secured with a strong password.  (Well at least they have an email account they do not share.  Not everyone follows good password creation guidelines.)  The point being that if you send an email message to jason@palmer.net  confidence is high that I am the only one sending and receiving mail from that account.  In fact, the entire point of using a Digital Certificate for Secure Email is that you as the recipient could immediately tell if the message was sent from the real jason@palmer.net email account (most likely me if a Class 1 Certificate and definitely me if a Class 2 Certificate) or if it was spoofed.  (There are other ways of determining a Spoofed email, specifically by reviewing the Full Headers of the Message and spotting inconsistencies in the email addresses and Servers.)

For added assurance, you may want to consider a Class 2 Certificate whereby you need to provide the Certificate Authority with proof of identity, such as a Government issued ID (Driver’s License, Passport, Passport Card, Birth Certificate, or similar).  A Class 2 Certificate validates both the email address and that you are its’ owner and a real person.  Email signed with a Class 2 Certificate is similar sending over a notarized document.  An independent third party has verified your identity so when you use the Certificate a certain level assurance can be assumed by the recipient that you are the actual, legitimate sender of the message.

Class 2 Digital Certificates for Secure Email come in two flavors:  “Personal”, that specifically identify you as an individual and “Business”, that specifically identify you and that you are a legitimate employee of a specific company.

You may be wondering, “Wow, this sounds great!  Why isn’t everyone using a Digital Certificate for Secure Email on every message?”  The answer would be because it is a little cumbersome to setup and use.  First both you and everyone you want to send and receive mail from need to obtain his or her own Digital Certificate for Secure Email.  Next, you need to configure your email client to work with the Digital Certificate for Secure Email.  This is relatively straightforward in Microsoft Outlook, Mozilla Thunderbird, or Lotus Notes.  Not quite as easy for Web Mail Users of Gmail, AOL, Hotmail, Yahoo, and similar services as it requires a plug-in or extension installed in the web browser. (A plug-in or extension is a specialized helper application that enables additional features and capabilities in your web browser.)

If the recipients’ email client is properly configured to understand a Digitally Signed email message, when you send a Digitally Signed Message, the recipient will see a notation on the email that the message was Digitally Signed.  However, if the recipients email client is not setup properly, the recipient will see an additional text attachment to your message that is meaningless and contains the Digital Signature Information.  This can become very annoying to your recipients as every message would you send them would have an attachment.

Securing your email all starts with either a Class 1 or Class 2 Digital Certificate for Secure Email.  At least visit Comodo below and start with a FREE Class 1 Digital Certificate for Secure Email, and then tell all of your friends to do the same.  A Class 1 Digital Certificate for Secure Email takes only minutes to request and install, they are valid for one year, and are available free of charge

Stay tuned and read my future articles on how to implement Secure Email Communication for transmission of sensitive and confidential information over the wild Internet through Email.

Important Technical Note:  Make sure that you use the same computer and web browser to request and access the retrieval of Digital Certificate for Secure Email.  You will also need to make sure that Java is enabled and that your web browser accepts Cookies to complete the process successfully.  The Certificate is actually being created and added to your web browser’s certificate store, and then you have to export it for your specific email client.  Microsoft Internet Explorer and Microsoft Outlook do not require this step as they both can access the same Certificate Store in Windows.  Firefox and the Thunderbird Email client or Lotus Notes might require some additional steps to configure properly.  Instructions are provided by both the Certificate Authority and your Email Client Vendor.

Digital Certificate for Secure Email Authority Vendors:

Free Class 1

Comodo – FREE AND RECOMMENDED CHOICE
http://www.instantssl.com/ssl-certificate-products/free-email-certificate.html

Symantec TrustCenter – FREE (Not as fast or easy as Comodo.)
https://www.trustcenter.de/RetailStore/cid/CustomerData!input.action

StartSSL – Free but cumbersome to apply for and install
https://www.startssl.com/?app=1

CACert – Free and very cumbersome to apply for and install
https://www.cacert.org/

Paid Class 1 and 2 Personal and Business
NOTE:  There is no reason to pay for a Class 1 Certificate.  Use the Free options above.

Comodo – Business Class 2 Certificates – Value Priced Leader
http://www.enterprisessl.com/ssl-certificate-products/addsupport/secure-email-certificates.html

*Prices and Features vary widely with Vendors listed below – Read Carefully before purchasing.

GlobalSign – Personal and Business Class 1 and 2
https://www.globalsign.com/personalsign/comparison.html

IdenTrust – Personal and Business Class 2
http://www.identrust.com/certificates/trustid.html

Symantec TrustCenter – Personal Class 2
http://www.trustcenter.de/en/products/tc_personal_id.htm

Symantec TrustCenter – Business Class 2
http://www.trustcenter.de/en/products/tc_business_id.htm

Symantec/Verisign – Personal Class 1
http://www.symantec.com/verisign/digital-id

Filed Under: Security, Tech in Plain English Tagged With: Cacert.org, Certificate Validation, Certificates Authority, Class 1, Class 1 Certificate, Class 1 Digital Certificate, Class 2 Certificate, Class 2 Digital Certificate, Comodo Group, Cryptographic Protocols, Digital Certificates, Digital Signature, Email, Email Encryption, Ibm Lotus Notes, Key Management, Secure Email, smime, Ssl Secure Socket Layer

Connect

  • Email
  • Facebook
  • LinkedIn
  • RSS
  • Twitter

Categories

  • ACT! Premium CRM
  • Cloud
  • Commentary
  • Consulting
  • Disaster Planning
  • Google Apps
  • Management Consulting
  • Networking
  • Office365
  • Printer Issues
  • Security
  • Tech in Plain English
  • Tech Tips
  • Virtualization
  • Wordpress

The Tweetisphere

  • Just now
  • https://twitter.com/palmercomputer

Pages

  • About Us
  • Blog
  • Break/Fix
  • Consulting
  • Contact Us
  • Cyber Insurance Auditing
  • Installation
  • Network Infrastructure
  • Product Showcases
    • Brocade Product Showcase
    • Cisco Product Showcase
    • EMC Product Showcase
    • Emerson Product Showcase
    • IBM Product Showcase
    • Intel Product Showcase
    • Juniper Product Showcase
    • Veeam Product Information
    • VMWare Product Showcase
    • Xerox Office Products
  • U.S. Federal Courts
  • Vendor List
  • Web Applications
  • Web Hosting

Copyright © 2025 · Log in