LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-04-2019, 09:30 AM   #1
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Rep: Reputation: Disabled
expired cert


I use redhat 7.x and apache 2.x

I have installed new ssl cert to the web server , I use third party ssl checker to find that using ipv4 to test ssl cert , it pass , while using ipv6 to test , the result shows that the ssl cert is expired .

What make such difference , what will be the cause , DNS , web server configuration or cert issue ?

thanks
 
Old 03-04-2019, 09:38 AM   #2
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Is the certificate common name the server IP address or fully qualified domain name?
 
1 members found this post helpful.
Old 03-04-2019, 07:08 PM   #3
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sevendogsbsd View Post
Is the certificate common name the server IP address or fully qualified domain name?
How may I know it ?
 
Old 03-04-2019, 08:04 PM   #4
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
On the public key of your certificate, run this openssl command against it:
Code:
openssl x509 -in <your certificate public key file> -text -noout
Review the subject, or common name attribute (can't remember which at the moment) and see if it is the fully qualified domain name of your server or an IP address. It is unlikely an IP address, unless your server is a piece of network equipment that doesn't have an fqdn.

My thoughts were that openssl didn't know what to do with an IPV6 address but that's probably not it - what is the "not after date" attribute of your certificate; is it in the future?
 
Old 03-04-2019, 10:07 PM   #5
raymondchoy750
LQ Newbie
 
Registered: Feb 2019
Posts: 8

Rep: Reputation: Disabled
Quote:
Originally Posted by sevendogsbsd View Post
On the public key of your certificate, run this openssl command against it:
Code:
openssl x509 -in <your certificate public key file> -text -noout
Review the subject, or common name attribute (can't remember which at the moment) and see if it is the fully qualified domain name of your server or an IP address. It is unlikely an IP address, unless your server is a piece of network equipment that doesn't have an fqdn.

My thoughts were that openssl didn't know what to do with an IPV6 address but that's probably not it - what is the "not after date" attribute of your certificate; is it in the future?
deleted

Last edited by raymondchoy750; 03-05-2019 at 01:04 AM.
 
1 members found this post helpful.
Old 03-05-2019, 12:32 AM   #6
raymondchoy750
LQ Newbie
 
Registered: Feb 2019
Posts: 8

Rep: Reputation: Disabled
apache have specific configuration which handling ipv6 ?
 
1 members found this post helpful.
Old 03-05-2019, 06:23 AM   #7
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by raymondchoy750 View Post
apache have specific configuration which handling ipv6 ?
Yes , I also think if the expiry is caused by apache configuration , I have to config ssl in apache for ipv6 ?
 
Old 03-05-2019, 08:13 AM   #8
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Do you need IPV6?
 
1 members found this post helpful.
Old 03-05-2019, 10:25 AM   #9
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sevendogsbsd View Post
Do you need IPV6?
Yes
 
Old 03-05-2019, 12:43 PM   #10
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
What are you actually sending to the server and what is the error? If you are connecting by IPv6 address instead of hostname, then you probably are missing the IPv6 address in the SAN list in your certificate.
 
2 members found this post helpful.
Old 03-06-2019, 12:51 AM   #11
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
What are you actually sending to the server and what is the error? If you are connecting by IPv6 address instead of hostname, then you probably are missing the IPv6 address in the SAN list in your certificate.
connecting with hostname
 
Old 03-06-2019, 08:30 AM   #12
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
And the cert is not actually expired?
 
Old 03-06-2019, 09:58 AM   #13
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Original Poster
Rep: Reputation: Disabled
I have the below supplementary information .

The valid is installed in proxy , the cert in web server is expired , all ipv6 test in these servers are fail , ipv4 are pass

I just tried to install a valid cert to one of web server , the ipv6 test is pass in this server .

is our proxy issue ?

Last edited by catiewong; 03-06-2019 at 10:38 PM.
 
Old 03-06-2019, 10:05 AM   #14
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by catiewong View Post
I have the below supplementary information .

The valid is installed in firewall , the cert in web server is expired , all ipv6 test in these servers are fail , ipv4 are pass

I just tried to install a valid cert to one of web server , the ipv6 test is pass in this server .

is our firewall issue ?
If the cert on webserver is expired; remove it.
Keep the cert in WAF, and try connecting again.
 
Old 03-06-2019, 08:52 PM   #15
raymondchoy750
LQ Newbie
 
Registered: Feb 2019
Posts: 8

Rep: Reputation: Disabled
Quote:
Originally Posted by dc.901 View Post
If the cert on webserver is expired; remove it.
Keep the cert in WAF, and try connecting again.
deleted

Last edited by raymondchoy750; 03-06-2019 at 10:37 PM.
 
  


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
how to configure Apache with one SSL cert for primary domain, another wildcard cert for subdomains? sneakyimp Linux - Server 5 05-08-2018 12:36 AM
concat server SSL cert and chain cert LYC Linux - Newbie 2 07-20-2015 07:08 AM
Error: Can't read cert file /etc/pki/tls/certs/cert.pem in Twiki jsaravana87 Linux - Server 1 09-09-2011 06:01 PM
OpenSSL / Sendmail verifies both "TLS cert" and "x509 cert" in client mode, why? fast-reflexes Linux - Server 0 09-12-2010 11:32 AM
Root account expired, sort of.... rmohn Linux - Security 1 12-10-2002 10:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:05 PM.

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