LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-19-2018, 10:52 AM   #1
fbeye
Member
 
Registered: Aug 2017
Posts: 49

Rep: Reputation: Disabled
SSL Certificate Mishaps


On my Linux Box I am running my own email server on a static ip and a purchased domain. Both forward/reverse DNS appear to be working fine and I can send.receive email fine.

What I am confused about is this;

I go to https://ssl-tools.net/mailservers/ and test my Domains email. It returns with everything good except the SSL Cert which specifies 1.) hostname mismatch and 2.) unknown authority. The Unknown authority is probably because I have elf signed certs, which I am fine with.
My concern is the hostname mismatch.

Their output is ;

mx.domain.org x.x.x.180 30 supported mail.domain.org

I see that it mentions mx and also mail. My Reverse is indeed set for mail.domain.org and the Linux Box name (host name) is also mail. So not sure if their return “mx” is just customary label or that it is indeed showing both mx and mail and is confused.

If it is just customary then I wonder if the SSL Certs are indeed mismatched.
The only thing I notice wrong / different in both are the OU in one says 1 the OU on the other says 2.

I know this is a broad question but really I am just uncertain if this is a reconrds issue outside my ability or if in Linux I am doing something wrong.
 
Old 02-20-2018, 02:21 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Their output is ;

mx.domain.org x.x.x.180 30 supported mail.domain.org

I see that it mentions mx and also mail. My Reverse is indeed set for mail.domain.org and the Linux Box name (host name) is also mail. So not sure if their return “mx” is just customary label or that it is indeed showing both mx and mail and is confused.
Use this, or run the following command to find out the actual hostname of the MX RR for your domain as it's known to the world:
Code:
dig mx domain.org @8.8.8.8


Quote:
If it is just customary then I wonder if the SSL Certs are indeed mismatched.
The only thing I notice wrong / different in both are the OU in one says 1 the OU on the other says 2.
To test/read your certificate, use the openssl client:
Code:
openssl s_client -starttls smtp -crlf -connect mail.domain.org:25
 
Old 02-20-2018, 10:55 AM   #3
fbeye
Member
 
Registered: Aug 2017
Posts: 49

Original Poster
Rep: Reputation: Disabled
Oh very interesting. Thank you for the tools.

The intoDNS come back with quite a bit of information... Of all the tests everything passes except it mentions that my Namerservers by the company who gives me my domain has a “recursive query” so I’ll look and see what my options about that are but everything else is spot on.
When I run the manual command it is less detailed but has the meat and taters.. And comes back correct.

The SSL check spits out a bunch of close etc but nothing that looks in error.. So I can paste that later.
 
Old 02-20-2018, 04:45 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Of all the tests everything passes except it mentions that my Namerservers by the company who gives me my domain has a “recursive query” so I’ll look and see what my options about that are but everything else is spot on.
If these nameservers are just authoritative for your domain, you should turn recursion off so it doesn't get abused.

From the rest of your answer, everything else seems that it works as expected.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSL certificate generation question - No certificate matches private key etcetera Linux - General 1 04-10-2017 01:28 PM
How to import/use CAcert SSL root certificate to use SSL with Xchat IRC client? GrapefruiTgirl Linux - Software 9 04-05-2011 09:54 AM
Apache with SSL does not load the 2nd SSL certificate janstapel Linux - Newbie 1 06-17-2010 09:32 PM
SSL Certificate The_JinJ Linux - General 1 03-21-2005 11:46 PM
ssl-certificate twantrd Linux - General 1 03-31-2004 08:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration