Wednesday, 21 December 2016

How to get HTTPS: Setting up SSL on your website

If you are collecting ANY sensitive information on your website (including email and password), then you need to be secure. One of the best ways to do that is to enable HTTPS, also known as SSL (secure socket layers), so that any information going to and from your server is automatically encrypted. The prevents hackers from sniffing out your visitors’ sensitive information as it passes through the internet.
secure lock https
Your visitors will feel safer on your site when they see the lock while access your website – knowing it’s protected by a security certificate.

Overview

The best thing about SSL is it’s simple to set up, and once it’s done all you have to do is route people to use HTTPS instead of HTTP. If you try to access your site by putting https:// in front of your URLs right now, you’ll get an error. That’s because you haven’t installed an SSL Certificate. But don’t worry – we’ll walk you through setting on up right now!
Setting up HTTPS on your website is very easy, just follow these 5 simple steps:
  1. Host with a dedicated IP address
  2. Buy a certificate
  3. Activate the certificate
  4. Install the certificate
  5. Update your site to use HTTPS

Step 1: Host with a dedicated IP address

In order to provide the best security, SSL certificates require your website to have its own dedicated IP address. Lots of smaller web hosting plans put you on a shared IP where multiple other websites are using the same location. With a dedicated IP, you ensure that the traffic going to that IP address is only going to your website and no one else’s.
An affordable host I recommend for a dedicated IP is StableHost. At this time it’s under $6/month, but you can get it cheaper if you order for a full year. They’re my host and I’ve been blown away with their support and performance. Oh, and here’s a coupon for 40% off: expert40
If you don’t have a plan with a dedicated IP  you can ask your current web host to upgrade your account to have a dedicated IP address. There will probably be a charge for it – it could be one-time or monthly fees.

Step 2: Buy a Certificate

Next you’ll need something that proves your website is your website – kind of like an ID Card for your site. This is accomplished by creating an SSL certificate. A certificate is simply a paragraph of letters and numbers that only your site knows, like a really long password. When people visit your site via HTTPS that password is checked, and if it matches, it automatically verifies that your website is who you say it is – and it encrypts everything flowing to and from it.
Technically this is something you can create yourself (called a ‘self-signed cert’), but all popular browsers check with “Certificate Authorities” (CA’s) which also have a copy of that long password and can vouch for you. In order to be recognized by these authorities, you must purchase a certificate through them.
NameCheap is where I buy my certificates. They have a few options, but the one that I find best is the GeoTrust QuickSSL.  At this time it’s $46 per year, and it comes with a site seal that you can place on your pages to show you’re secure – which is good for getting your customers to trust you. You’ll simply buy it now, and then set it up by activating and installing it in the next steps.

Step 3: Activate the certificate

Note: Your web host may do this step for you – check with them before proceeding. This can get complicated and if you can wait 1-2 days it may be best to let them do it.
If you’re activating the certificate yourself, the next step is to generate a CSR. It’s easiest to do this within your web hosting control panel – such as WHM or cPanel. Go to the SSL/TLS admin area and choose to “Generate an SSL certificate and Signing Request”. Fill out the fields in the screen below:
generate a CSR
“Host to make cert for” is your domain name, and the contact email can be blank. When you’ve filled it out, you’ll see a screen like this:
Generated CSR
Copy the first block of text. You’ll need this “CSR” to give to the SSL cert issuer so they can establish your identity. Login to your NameCheap account (or wherever you bought your certificate) and activate it. Paste your CSR and any other fields needed. It will ask you for an approver email. This is an email address that proves you own the domain, ie webmaster@domain.com. If it doesn’t exist, you’ll need to create it so you can get the email that contains the final certificate. Follow the steps and when you are done that email address should have received the cert as a .crt file.

Step 4: Install the certificate

Note: Your web host may also do this step for you too – check with them before proceeding. This can get complicated and if you can wait 1-2 days it may be best to let them do it.
If you’re installing up the certificate yourself, this is the easiest step you’ll ever do. You have the certificate in hand, all you need to do is paste it into your web host control panel. If you’re using WHM.CPanel, click the “Install an SSL Certificate” from under the SSL/TLS menu.
Installing a cert
Paste it into the first box and hit submit. That’s it! Now try to access your site via https://www.domain.com – you should be secure!

Step 5: Update your site to use HTTPS

At this point if you go to https://yoursite.com you should see it load! Congrats, you’ve successfully installed SSL and enabled the HTTPS protocol! But your visitors aren’t protected just yet, you need to make sure they’re accessing your site through HTTPS!
Keep in mind that you typically only need to protect a few pages, such as your login or cart checkout. If you enable HTTPS on pages where the user isn’t submitting sensitive data on there, it’s just wasting encryption processing and slowing down the experience. Identify the target pages and perform one of the two methods below.
You can update all links to the target pages to use the HTTPS links. In other words, if there’s a link to your cart on your home page, update that link to use the secure link. Do this for all links on all pages pointing to the sensitive URLs.
However, if you want to ensure that people can only use specific pages securely no matter what links they come from, it’s best to use a server-side approach to redirect the user if it’s not HTTPS. You can do that with a code snippet inserted on top of your secure page. Here’s one in PHP:
// Require https
if ($_SERVER['HTTPS'] != "on") {
    $url = "https://". $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
    header("Location: $url");
    exit;
}
Another server-side approach is to use mod-rewrite. This won’t require you to change any of your website files, but will need you to modify your apache configuration. Here’s a nice mod-rewrite cheat sheet , or just use this example:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(cart/|checkout/) https://%{HTTP_HOST}%{REQUEST_URI}
This will ensure that if anyone accesses a page via HTTP they will automatically be redirected to HTTPS.

Tips

  • Understand that HTTPS doesn’t mean information on your server is secure, it only protects the TRANSFER of data from your visitor’s computer to yours, and the other way too. Once the sensitive data is on your server it’s up to you to keep that data safe (encrypt in database, etc).
  • Some people just look for a lock on the page, not on the browser. After you’ve installed SSL you might want to try adding a lock icon on your pages just to let them know it’s secure if they don’t look in the url bar.

Summary

What makes a website secure? A properly installed security certificate.
Congratulations! You’ve successfully protected your website by installing an SSL cert and made your visitors less prone to attacks. You can breathe easy knowing that any information they submit on your website will be encrypted and safer from packet sniffing hackers.

Resources Used

Tuesday, 20 December 2016

User Profile Synchronization Service Starting then Stopped in SharePoint

When I tried to configure UPS service in SharePoint Server 2013 by following
  • Open Central Administration as a Farm account.
  • Go to Application Management > Manage Service Application.
Application Management - Manage Service Applications
  • Create a New User Profile Service Application.
new UPS
  • The Create  New User Profile Service Application page will be shown.
provision UPS.png
  • After the UPS service has been created successfully, I went back to
    • System Settings > Manage Services on Server.
Manage Services On Server
I tried to restart UPS service. But unfortunately, I found out unexpected behavior; it was starting then it stopped!
Cause:
As I mentioned before in this article, there are more reasons regarding this issue,
But In this case, the problem is related to the permission of the farm account where it must be added to local administrator group during starting and provisioning UPS service.
Solution:
To add a farm account to local Administrator group, you should follow the mentioned steps:
  • Open Server Manager > Tools > Computer Management.
Computer Management
  • From left side > Select Local User and Groups > Click on Groups > Administrator Group.
  • Right Click on Group name > Properties > From Member tab > Select the service account > Add.
Local users and group - Computer management.png
Note: If the Active Directory had been installed on SharePoint Server for testing/DEV purpose only you could remove the service account by following the mentioned steps below:
  • Open Active Directory Users and Computer as administrator.
AD Users and computers
  • From left side > Select Buildin > Double click on Administrators groups.
Administrator group
  • From Members Tap > Select the service account > Click Add.
AD Administrator Group
  • Repeat the previous steps on all SharePoint Servers that running this service.
Note: After making changes to the farm account, you must restart the SharePoint 2013 Timer service or restart the server.
This ensures that every SharePoint service that is currently running as the farm account is using the latest credentials.
Restart SharePoint Timer Service
  • Go back to System Settings > Manage Services on Server.
Manage Services On Server
  • Try to start UPS service that should be started now.
UPS started successfully
If it’s not started, you should follow the mentioned instruction in this article or try to restart the server then delete and reconfigure UPS service again!
Keep in mind, adding the farm account to local Administrator group is required only to start the User Profile Synchronization service.
After the User Profile Synchronization service has been started, you should remove the farm account from the Administrators group to avoid raising the following security warning in Health Analyzer.
Accounts used by application pools or service identities are in the local administrator group 



account in local admin group

Sunday, 18 December 2016

Small OOB calendar Webpart for sharepoint 2010 and 2013

2010 CSS link reference in Master Page: 
<SharePoint:CssRegistration name="<% $SPUrl:~sitecollection/Style Library/smallcalendar.css %>" After="corev4.css" runat="server"/>

2010 CSS: 
/**** Small Calendar ***/ 
.ms-acal-item{height: 10px !important;} 
.ms-acal-sdiv, 
.ms-acal-mdiv, 
.ms-acal-ctrlitem, 
.ms-acal-month-weeksel, 
.ms-acal-title{display: none;} 
.ms-acal-summary-itemrow TD DIV{height: 15px !important;}

2013 Content Editor Web Part CSS: 
<style> 
/**** Small Calendar ***/ 
.ms-acal-item{height: 10px !important;} 
.ms-acal-sdiv, 
.ms-acal-mdiv, 
.ms-acal-ctrlitem, 
.ms-acal-month-weeksel, 
.ms-acal-title, 
.ms-acal-month-top span{display: none;} 
.ms-acal-summary-itemrow TD DIV{height: 15px !important;} 
</style>

Friday, 16 December 2016

10 Of The Best Acne Home Remedies For Clear Glowing Skin!


Looking for a gentle, yet effective acne treatment but short on money and time? Look no further than home. From lemon's potent citric acid to honey's soothing antibacterial properties there are TONS of at home acne remedies to chase away pesky spots. In fact these ingredients are used in many of our skin products today! Here are the best acne home remedies for gorgeous clear skin...

1. Honey

Sorry ladies, we’re not over this golden goo just yet! A little bit of honey goes a long


 way. Raw, active honey is a powerhouse of antibacterial, anti-fungal and antiseptic


properties which help kill off bacteria, exfoliate and help heal damaged skin - the perfect treatment for acne! Organic honey will do, but if you’re looking for something really effective we recommend Steens Manuka Honey.
Skincare expert and founder of Crystal Clear Skincare, Sharon Hilditch, MBE says, "Hydrogen peroxide is a great component of honey - it gives honey its antibiotic quality. However Manuka Honey has other properties that make it a great antibacterial agent such as Methylglyoxal (MG). This component is found in other honey but in lower percentages. So the higher the concentration of MG the stronger the antibiotic effect."
If you go for manuka honey make sure to buy it with at least +15 UMF (the medicinal strength of the honey), this way there’ll be enough punch to fight those unsightly blemishes. To use, apply generously over the face and neck and leave on for 15-20 minutes. Then massage gently in a circular motion and wash off with warm water.
honey












2. Apple cider vinegar

Apple cider vinegar is one of nature's best toners. One swipe of the stuff and you’ll be targeting spots head on, reducing redness and treating spots before they get out of control. The power lies in the apples - the malic and lactic acids in apple cider vinegar help draw out impurities and exfoliate the skin. "Apple cider vinegar also contains beta-carotene which is a great anti-oxidant, that helps mop up free radicals that are damaging the skin", says Dr Terry Loong AKA the 'Skin Energy Doctor'.
​The substance also helps restore your skin's pH level to its ideal (4.5 - 5.5) helping it become slightly acidic. When your skin’s too alkaline it becomes dry and vulnerable (i.e. prone to pesky spots and wrinkles). No thank you!
To make sure you're on the right end of the scale apply some diluted apple cider vinegar as a nightly toner and leave the solution to work its magic while you sleep. Alternatively, if you don’t fancy leaving it on while you sleep you can leave the solution on for 10-20 minutes and rinse off with lukewarm water. Don’t worry if it tingles - that’s a good thing, but burning? That's a big no, no.

3. Fresh sliced papaya

Papaya is a pretty special ingredient when it comes to acne-prone skin. The reason being that fresh papaya has an ingredient called, papain, a protein dissolving enzyme which acts as an exfoliation agent on skin, breaking down the surface of dead skin cells and accelerating cell turnover.
Papaya is also rich in vitamins A, B and C which help soothe away those red angry spots. Papaya’s potent vitamin A is particularly beneficial. Vitamin A is widely used in acne products today for reducing inflamed and swollen spots. But that isn’t all, while helping combat unruly acne papaya also works to keep your skin hydrated and reduce the signs of ageing.
Papaya is "brilliant as an all-round treatment for acne prone skin and ageing skin", says Sharon. "If you apply a mashed up papaya to the skin you and leave it for 25 minutes you will be amazed as to how soft and clear your skin looks."
After removing, tone and moisturise as usual. See - fresh clear skin is only a few slices away!
papaya












4. Tea tree oil

Get rummaging through those medicine chests ladies! According to scientists tea tree oil, an essential oil from a plant native to Australia, has about one hundred different ‘medicinal’ properties.

"The organic compound terpinen-4-ol (the most abundant terpenoid), is believed to be the main reason for tea tree oil's antimicrobial properties," says Sharon. Which makes it a great candidate for fighting those accumulating breakouts! But the reason we're obsessing over tea tree oil is that it doesn’t strip the natural oils from your skin. So while it tackles bacteria, tea tree oil also helps soothe red irritated skin (which is far better than burning benzoyl peroxide).
BUT (and this is a big but), you should never apply undiluted tea tree oil to acne. The potent solution can make skin become dry, irritated and itchy, which is the last thing you want when you're suffering from this stubborn condition. The best thing to do is mix 5ml of tea tree oil with 95 ml of water. Apply as a toner over acne prone areas. Try mixing tea tree with aloe vera gel and honey too - the ways in which you can use this nifty solution are endless.

We're hooked!

5. Lemon juice

We know what you’re thinking...AS IF you’re going to put lemon juice on your acne! But when used it in the right way, lemons can make all the difference to your spots (and acne marks).
Lemon juice contains an active ingredient called, L-ascorbic acid which is a potent antioxidant that helps treat acne and promotes healing to the skin. As a natural exfoliant, lemon juice can be applied directly to spots or all over the face. Just make sure to dilute the solution!

The best way to apply lemon juice is by making a 2 part solution. One part water and 1 part lemon juice. This can be adjusted depending on how your skin feels. Soak a cotton ball or pad in the solution and apply all over - leave over night if necessary. You may feel a slight tingling sensation due to the citric acids, but don’t worry this means it’s working. To get the most of lemon's brightening benefits apply all over the face - be generous. Who knew citrus was so powerful!
"It's also a great oil absorber and skin brightener," says Dr Loong, but warns "it's effects are intensified by exposure to UV rays of the sun so be careful when you apply it especially if you have a darker skin tone to avoid burning or pigmentation."
lemons












10. Milk

Do you suffer from red spotty skin? Grab the milk jug.
The lactic acid in milk makes a beautiful nourishing facial, helping combat dryness (one of the main causes of acne) while loosening dead skin cells.
Sharon says, "Cleopatra, the ancient Egyptian queen, is renowned for her beauty milk baths for soft supple skin. Milk baths will not only soften and exfoliate your skin from top to toe, but it will also protect your skin and soothe any skin inflammations you may have."
And while milk does a fantastic job at targeting your spots you can make an even more powerful solution for them by mixing it with some honey. This will help get right down to the bacteria!
As a facial, all you have to do is mix one tablespoon of honey and one tablespoon of milk. Go organic - the more wholesome the food the better for your skin. After 10-15 minutes dampen a cloth and remove with circular motion (helping wash away dead skins).
What other home remedies do you swear by?