Technology

Peer certificate CN did not match expected!

I was Configuring WP Mail SMTP Plugin for WordPress on client site. Default PHP mail function works well, but a couple of users reported mail getting delivered in the SPAM folder. So we decided to route mailing one of the Official ID using SMTP.

We installed Plugin, Configured credentials. The task was like 10 min work, and the test mail was a failure. We had SMTP connect() failed Error in Debug Log. Found out it was a misconfiguration at the Server based on following Quotes found on Forums.

“Note that the default value of SSLProxyCheckPeerCN is off in httpd 2.2.x and on in httpd 2.4.x. Note that SSLProxyCheckPeerExpire and SSLProxyCheckPeerName also now default to on in 2.4.”

And

check SSL module mod_ssl.so is loaded in httpd.conf

Everything was just fine in httpd.conf which is auto-generated in Cpanel/WHM. So on searching Cpanel Support Forum Found out, there’s Hardening Setting in WHM > SMTP Restriction. So if you are stuck with it, make sure to disable it. SMTP will work like Charm.

Standard
Business, Nagpur

How to Start Delivery Kitchen – Part 1

Disclaimer: This is all my kida for learning how things go in this Modern world. Please Consult your CA or CS for your queries.

Little Back Story
Every time Kartik (My school mate with 10+ Years of experience in Continental foods) came to India, we discussed starting a food venture. We did some research, discussions and his duty calls him back to Bread butter Business. This time, he’s again for some months, and the past few days we are studying some feasible Business model for our Venture.

Delivery Kitchen is the one we choose, here’s why
1. One can Start Delivery Kitchen based on Lean Model principles. So No huge Investment to start.
2. Delivery Partners like Zomato, Swiggy, Uber Eats and Food Panda are providing a great platform to startup. One has to worry less about Acquiring Customers as on Discussion with these Partner Onboarding Executives, and they help you understand the regional scenario. And Optimize the Menu for Better sell.

What you need to signup at any Online Food Delivery Platform.
1. Shop Act registration
Standard Business Disclosure, One can use Maitri Portal from Maharashtra Govt. costs around Aprx. INR 24 /-
It won’t take more than a day to get a Gumasta (Shop Act Licence)
Sign up here – https://maitri.mahaonline.gov.in/

2. FSSAI Licence
Food Safety and Standardization licence mandate for every food business in India. For Starters, it costs you around Rs. 2000. You can get it done from the Official website. Which is awful, so we got it done from Authorized vendor who charged double to us.

Thanks to Digital India, Licence was in our Mailbox on Day 3.
Try your luck at – https://foodlicensing.fssai.gov.in/index.aspx.

3. PAN & GST Details
PAN Card is mandated at any online store. If you are not eligible for GST, you can share a self-declaration for same.

Where to Signup as Delivery Kitchen
Zomato – https://www.zomato.com/business
Uber Eats – https://www.ubereats.com/restaurant/signup
Swiggy – https://www.swiggy.com/partner-with-us/

What’s ahead for us?

    • Onboarding with Food Delivery Platforms.
    • Understanding the day/night requirements of delivery areas
    • What to cover in Menu that will work in our planned areas.
    • How to keep our cost low.

I hope I can write about the experience soon enough. If you like to share your journey Feel free to DM me on Twitter or Facebook.

Standard
General

My PHPCS & WPCS Setup Notes

Recently I’d SSD upgrade on my mac, the first thing I need to do for Setting Dev Environment was to Install Homebrew, Laravel Valet and PHPCS for Better Code Practices and the Editor. Following items were scattered, just curating them for future reference.

If you are Mac user, you will need to install Homebrew & Laravel Valet, linking to official Docs.

PHPCS and WPCS can be installed on any OS. Steps are almost same, Following are steps for Configuring PHPCS and WPCS for Mac and Windows.

1. Installing PHPCS
1.a Official Documentation

1.b Installing via Composer
composer global require "squizlabs/php_codesniffer=*"

2. Verify phpcs version
phpcs --version

3. Check Installed Coding Standards
phpcs -i

4. Installing WordPress Coding Standards
composer global require "wp-coding-standards/wpcs"

5. Configure PHPCS to use WPCS
phpcs --config-set installed_paths ~/.composer/vendor/wp-coding-standards/wpcs

6. Using PHP CS with WordPress
6.1 using WPCS on specific file – hello.php
phpcs --standard=WordPress /path/to/hello.php

6.2 using WPCS on specific Plugin / Theme
phpcs --standard=WordPress /path/to/wp-content/themes/theme-name/

7. PHPCS for Laravel Apps –
7.1 Refer Official Document

7.2 Install LaravelCS
composer global require pragmarx/laravelcs

8. Configuring PHPCS with Sublime – Official Doc

8.1 Must have Sublime Package Controller
https://packagecontrol.io/installation

8.2 Install SublimeLinter then SublimeLinter-phpcs.

8.3 Go to Linter Settings, Create User Config. Update your phpcs path in the following My GIST

8.4 Restart Sublime, Before Testing phpcs code

If you are on Windows, Point Number 5 becomes
phpcs --config-set installed_paths C:/Users/abhishek/AppData/Roaming/Composer/vendor/wp-coding-standards/wpcs

Make sure you update your system username. If you find any issue setting it up, feel free to Tweet me.

Standard