LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-28-2014, 05:27 AM   #1
Miky
Member
 
Registered: Dec 2002
Location: London / Paris
Distribution: Debian / OpenBsd
Posts: 74

Rep: Reputation: 15
Impossible to make SSL AltName to work


Hello everybody,

I would like to access a https server using the IP in the URL string with my browser without having the certificate warning.

Right now, I have my CA certificate imported into my browser and the server private key and certificate placed into the https server.
The cn field equals the fqdn: myserver.example.com

When I access myserver.example.com with my broswer everything just works fine.

=

I read that I should use subjectAltName if I wanted to access this server with the IP 1.1.1.1
So I modified the openssl.cnf

I regenerated my server certificate and signed it with the CA.
Code:
# openssl x509 -in servercert.crt -noout -text
shows
Code:
Subject: C=FR, ST=IDF, L=Paris, O=MyOrg, OU=MyDpt, CN=myserver.example.com/subjectAltName=1.1.1.1/emailAddress=email@example.com
And after installing the certificate I can retrieve it with
Code:
#openssl s_client -connect 1.1.1.1:443 -state -debug
it shows
Code:
subject=/C=FR/ST=IDF/L=Paris/O=MyOrg/OU=MyDpt/CN=myserver.example.com/subjectAltName=1.1.1.1/emailAddress=email@example.com
and also tried with IP:1.1.1.1
Code:
#openssl s_client -connect 1.1.1.1:443 -state -debug
which shows
Code:
subject=/C=FR/ST=IDF/L=Paris/O=MyOrg/OU=MyDpt/CN=myserver.example.com/subjectAltName=IP:1.1.1.1/emailAddress=email@example.com
So I think it did everything right however my browser sends me the certificate warning when I access the server with 1.1.1.1 in the URL but doesn't display a warning if I access it with the FQDN (myserver.example.com)

Does someone have an idea on how to troubleshoot this ?

Last edited by Miky; 10-28-2014 at 09:12 AM.
 
Old 10-28-2014, 05:46 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
You've installed a cert for 1.1.1.1 but it's actually at 10.200.108.162 ?
 
Old 10-28-2014, 08:56 AM   #3
Miky
Member
 
Registered: Dec 2002
Location: London / Paris
Distribution: Debian / OpenBsd
Posts: 74

Original Poster
Rep: Reputation: 15
Hello linosaurusroot,
Yes I miswrote the address because I wanted to have a generic address on the forum. I have corrected it now.
I also tried IP:1.1.1.1 as an alternative name, it didn't work.
Thank you
 
  


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
Is it impossible to make games in linux with C++??? David2010 Programming 3 07-30-2009 09:09 PM
make Xconfig doesn't work, make menuconfig does work Debian/KDE bucovaina78 Linux - Kernel 1 10-15-2008 01:26 PM
Seems impossible to get a M$ MN-510 Adapter to work with Fedora 1- - Any suggestions? Lady Day Fedora - Installation 1 06-11-2006 02:04 PM
Impossible to make Rosegarden work with a via integrated soundcard pujolasdf Linux - Software 1 10-05-2005 09:11 PM
impossible time getting grub to work thomyorke38 Slackware 2 04-13-2005 06:13 PM

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

All times are GMT -5. The time now is 05:55 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