I recently Googled a website e.g A.com and found B.com in search result at the top. In reality A.com should be on top as B.com doesn't have anything in common or related to A.com but Google shows it in search result at top. In fact all meta tags / keywords are not there in B.com Now the interesting part is, when I visit B.com, browser does show me a warning. I ignore it and visit the website. Interestingly, all the content is from A.com. Even the contact form submitted is received by A.com. When I visit B.com without https original B.com is shown, whereas if I use https://B.com, then A.com is shown (browser url bar shows B.com with security warning)
1] Now I wonder why this is happening? 2] Has B.com installed A.com certificate by mistake? 3] If so, how can they get private key for that purpose? 4] Why Google is showing that website in search results?