Koozali.org: home of the SME Server

Creating a Self-Signed SSL Certificate

Offline NickCritten

  • *
  • 245
  • +0/-0
Creating a Self-Signed SSL Certificate
« Reply #15 on: May 23, 2006, 07:39:33 PM »
Jester (and anyone else who's interested)

I've just knocked together this script... Would you like to give it a go?

http://lmeit.co.uk/sslauto.php

It's very quick-and-dirty at the mo and doesn't contain the instructions, but you should get the Idea from the other Howto
...
Nick

"No good deed goes unpunished." :-x...

kabowers

ssl certificates
« Reply #16 on: May 25, 2006, 07:05:56 PM »
Hi Nick,
just tried your script, it worked fine.

one slight change possibly needed, where you ask for the domain name you may want to indicate to leave out "www." or you will get some people having trouble.

off topic

hows sunny Cardiff these days?
Are you still with NSL?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: ssl certificates
« Reply #17 on: May 25, 2006, 08:32:25 PM »
Quote from: "kabowers"
Hi Nick,
just tried your script, it worked fine.


Until the certificate expires, when it will again be replaced by the standard SME one.

All the script generated by that website does is give you a chance to provide new answers to the questions below:

...
Country Name (2 letter code) [GB]:
State or Province Name (full name) [Berkshire]:
Locality Name (eg, city) [Newbury]:
Organization Name (eg, company) [My Company Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:
Email Address []:
...

The standard SME template answers these with:

--
---
"City" property from "directory" panel
"Company" property from "directory" panel
"Department" property from "directory" panel
$SystemName.$DomainName
admin@$SystemName.$DomainName

If you want different answers to those ones, then most of them you can change via the "directory" panel, and the remaining ones you can change by changing your SystemName or DomainName - or by using a custom template.

If you think any of the default answers should be changed, or the certificate is not updated any time that it should be, then please use the Bug Tracker.

Offline NickCritten

  • *
  • 245
  • +0/-0
Re: ssl certificates
« Reply #18 on: May 26, 2006, 10:46:46 AM »
Quote from: "kabowers"

off topic

hows sunny Cardiff these days?
Are you still with NSL?


Hiya Keith!!

No time right now I'm on the way to work.. Will PM you later
...
Nick

"No good deed goes unpunished." :-x...

Offline jester

  • *
  • 496
  • +1/-0
Creating a Self-Signed SSL Certificate
« Reply #19 on: May 26, 2006, 07:54:08 PM »
Hi Nick,

Love it! I'm in the UK at the moment.... i'll give the instructions a go as soon as i get back to Holland where my test server is.

Thanx!
jester.

Offline jester

  • *
  • 496
  • +1/-0
Creating a Self-Signed SSL Certificate
« Reply #20 on: May 30, 2006, 11:41:48 AM »
Hi Nick,

Your auto generated howto works like a charm..... it would do well as a server-manager panel: only needs to ask for a new 'common name' and when to expire, rest is known.

I've got no more msg complaining about non matching names.

Thanx!!
jester.

Offline NickCritten

  • *
  • 245
  • +0/-0
Creating a Self-Signed SSL Certificate
« Reply #21 on: May 30, 2006, 01:51:45 PM »
No Worries... I'll tidy it up at some point.

btw I've logged a feature request on BugTracker..

You might be interested:  http://bugs.contribs.org/show_bug.cgi?id=1508


KBowers: Could you email me please? My address on the SSL Howto,

Cheers,
...
Nick

"No good deed goes unpunished." :-x...

Offline NickCritten

  • *
  • 245
  • +0/-0
Re: ssl certificates
« Reply #22 on: June 01, 2006, 09:30:27 AM »
Quote from: "CharlieBrady"
or by using a custom template.


Please see my new template-based howto: :hammer:
http://mirror.contribs.org/smeserver/contribs/nickcritten/howtos/ssl7.htm

How does this float your boat?
...
Nick

"No good deed goes unpunished." :-x...

Offline NickCritten

  • *
  • 245
  • +0/-0
Re: ssl certificates
« Reply #23 on: June 01, 2006, 11:22:30 AM »
Quote from: "NickCritten"
Quote from: "CharlieBrady"
or by using a custom template.


Please see my new template-based howto: :hammer:
http://mirror.contribs.org/smeserver/contribs/nickcritten/howtos/ssl7.htm

How does this float your boat?


I just noticed a typo in the template text - Uploading V1.0.1
It should come up on ibilblio in an hour or two.
...
Nick

"No good deed goes unpunished." :-x...

Offline andy_wismer

  • *
  • 107
  • +0/-0
    • ANWI-Net
Creating a Self-Signed SSL Certificate
« Reply #24 on: June 22, 2006, 10:17:24 AM »
@CharlieBrady:

If the server has virtual hosts in the form of say:

mail.domainname.xxx
www.domainname.xxx
intranet.domainname.xxx

it IS possible to create a Certificate for *.domainname.xxx.

A Certificate for the IP adress helps too. On say SuSE I created one for the internal IP, one for the external IP (The Server only has the port forwarded from a Sonicwall Firewall...) and one for the name as shown above.

That does work.

Regards

Andy

Offline NickCritten

  • *
  • 245
  • +0/-0
Creating a Self-Signed SSL Certificate
« Reply #25 on: June 22, 2006, 02:25:51 PM »
Quote from: "andy_wismer"
@CharlieBrady:

it IS possible to create a Certificate for *.domainname.xxx.

A Certificate for the IP adress helps too. On say SuSE I created one for the internal IP, one for the external IP (The Server only has the port forwarded from a Sonicwall Firewall...) and one for the name as shown above.

That does work.

Regards

Andy


Hi Andy,

Could you tell me how you do this?

Cheers,

Nick
...
Nick

"No good deed goes unpunished." :-x...

Offline andy_wismer

  • *
  • 107
  • +0/-0
    • ANWI-Net
Creating a Self-Signed SSL Certificate
« Reply #26 on: June 22, 2006, 02:55:11 PM »
Hi Nick

I found that about 1-2 years ago in a german linux mag called FreeX. I still have the mag and have done a small How-To (In German) for some friends, I'll post a small how-to in english say by Friday or Saturday...

Regards

Andy

Offline NickCritten

  • *
  • 245
  • +0/-0
Creating a Self-Signed SSL Certificate
« Reply #27 on: June 22, 2006, 02:57:23 PM »
Sweet
...
Nick

"No good deed goes unpunished." :-x...

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Creating a Self-Signed SSL Certificate
« Reply #28 on: June 22, 2006, 03:38:28 PM »
Nice work on the howto

Offline NickCritten

  • *
  • 245
  • +0/-0
Creating a Self-Signed SSL Certificate
« Reply #29 on: June 22, 2006, 07:51:22 PM »
Quote from: "mercyh"
Nice work on the howto


Thanks :-D
...
Nick

"No good deed goes unpunished." :-x...