Resolved: Adding MX Record(s) in AWS

 Recently, I was migrating MX records from WIX to AWS. I was using GSuite and I was unable to do the same. Then after a little bit of research, I found this stackoverflow link , which helped me resolve the problem. Here is how you should be adding the records in AWS. Record Name: @ Record Type: MX Value: <Priority> <Route Traffic to> example: 10 aspx.alt1.google.com And if you have multiple records, simply add the records in the same text area in the new line and no commas. This will resolve your problem. :)

Resolved: SSL Certificate Problem: unable to get local issuer certificate when doing Woocommerce Integration

 Hey Friends,

In this blog, I am going to share how I solved SSL Certificate problem on my local environment of php when I was doing a woocommerce integration.

I am talking about Woocommerce only, however, the concept is same when you want to connect with any api which is using https

PROBLEM:

  1. I have a website based on Wordpress using Woocommerce using https
  2. I need to populate the products from the website on my custom application and hence I was using local php environment.
  3. I was using WAMP for the development purposes.
  4. I was following Woocommerce Rest API documentation to do the development
  5. I got the error "unable to get local issuer certificate"
SOLUTION: 

  1. Download cacert.pem from the official curl website 
  2. Open php ssl folder and place the cert there. In my case it was:
    C:\wamp64\bin\php\php7.4.9\extras\ssl
  3. If you use different version of php development server, make sure you place the file in the correct folder. Check  php version with command
    php --version
  4. Open php.ini file and look for openssl.cafile and add the path of your certificate
  5. Restart Apache/WAMP and if you are using VSCode terminal, simply restart VSCode
  6. Yay! your problem should be solved.
Happy Coding!!!