Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th May 2013, 16:41
Steve85 Steve85 is offline
Junior Member
 
Join Date: Apr 2013
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Post SSL Certificate for a subdomain?

Hello all,

how is it possible to create a SSL certificate for a subdomain?

"mydomain.com" is no problem but if i want to encrypt my mail traffic i need a certificate for "mail.mydomain.com".

Where can i setup this?

Best,
Steve
Reply With Quote
Sponsored Links
  #2  
Old 25th May 2013, 23:02
yucktoufoo yucktoufoo is offline
Member
 
Join Date: Feb 2011
Posts: 36
Thanks: 1
Thanked 1 Time in 1 Post
Default

I assume you mean a self signed certificate? If so, by running this command, when prompted for Common Name set it to mail.yourdomain.com


Code:
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365
That will sign a cert for 365 days, if you dont want a passphrase on the key (which you probably dont if the cert is for a mailserver), add the -nodes option.

Don't forget to make sure the permissions are correct on your key file.
Reply With Quote
  #3  
Old 26th May 2013, 12:16
Steve85 Steve85 is offline
Junior Member
 
Join Date: Apr 2013
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for answer but this wasn`t the problem ;-)

If i create in the ISPConfig a subdomain like "login.mydomain.com" and i want to access login.mydomain.com over https i don`t find a way to create this? Maybe if i buy a wildcard certificate for "*.mydomain.com" but this shouldn`t the solution.

I want to create a certificate for only my subdomain which i create over ISPConfig.

Any idea? Not possible? Feature request?
Reply With Quote
  #4  
Old 26th May 2013, 13:19
yucktoufoo yucktoufoo is offline
Member
 
Join Date: Feb 2011
Posts: 36
Thanks: 1
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by Steve85 View Post
Thanks for answer but this wasn`t the problem ;-)

If i create in the ISPConfig a subdomain like "login.mydomain.com" and i want to access login.mydomain.com over https i don`t find a way to create this? Maybe if i buy a wildcard certificate for "*.mydomain.com" but this shouldn`t the solution.

I want to create a certificate for only my subdomain which i create over ISPConfig.

Any idea? Not possible? Feature request?
I thought you were talking about mail server certificates!?

I am assuming that you have just added a subdomain rather than using a subdomain to create a new "site". In which case I think wildcard certificate is probably your only way, (im guessing this... http://wiki.apache.org/httpd/NameBasedSSLVHosts is not what you need either but here for reference anyway).

Maybe I am missing something with your setup though?
Reply With Quote
  #5  
Old 27th May 2013, 11:55
peggyp peggyp is offline
Junior Member
 
Join Date: May 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

For securing sub-domains, you will need to buy wildcard SSL that offers facility to secure unlimited sub-domain and host domain with single SSL.
Reply With Quote
  #6  
Old 28th May 2013, 01:52
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 90 Times in 68 Posts
Default

No problem if you add the subdomain as separate website:

- In ispconfig create your subdomain like a normal domain. Client->Domain->New (subdomain.domain.com)

- Create website and select your previous created subdomain.domain.com. Select SSL checkbox too.

- Create the new certificate in the SSL tab.

- Don't forget to add a A record in the dns zone for the subdomain

Cheers.
Reply With Quote
  #7  
Old 28th May 2013, 13:04
Steve85 Steve85 is offline
Junior Member
 
Join Date: Apr 2013
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by pititis View Post
No problem if you add the subdomain as separate website:

- In ispconfig create your subdomain like a normal domain. Client->Domain->New (subdomain.domain.com)

- Create website and select your previous created subdomain.domain.com. Select SSL checkbox too.

- Create the new certificate in the SSL tab.

- Don't forget to add a A record in the dns zone for the subdomain

Cheers.
Think this will work. I`m not sure if this is the right way but a for a workaround it should do.

Thank you!
Reply With Quote
  #8  
Old 28th May 2013, 13:08
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,977
Thanks: 825
Thanked 5,369 Times in 4,216 Posts
 
Default

Quote:
Originally Posted by Steve85 View Post
Think this will work. I`m not sure if this is the right way but a for a workaround it should do.

Thank you!
Thats not a workaround, its described in the manual to create awebsite for a subomain if this subdomain shall have its own directory or needs any other features that exist only for vhosts in apache.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
500 internal error after upgrade abintipl Installation/Configuration 9 18th July 2012 12:51
ISPConfig 3 - CentOS 5.4 - SSL Problems!?! owainbaber Installation/Configuration 4 26th July 2011 17:12
Creating a SSL certificate - Quick guide SamTzu Tips/Tricks/Mods 22 4th January 2011 13:38
Is my postfix is hacked? bzzik Server Operation 21 15th July 2009 14:13
SSL for virtual hosts on one certificate rbartz Tips/Tricks/Mods 8 20th November 2007 17:59


All times are GMT +2. The time now is 09:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.