Re: Self-signed TLS certificates (Minimal setup)

2018-07-13 Thread Olivier
Danny Horne writes: > On 24/01/18 16:37, Dirk Stöcker wrote: >> It's not sooo complicated: >> >> Short guide for UNIXoid systems: >> > After a long gap (and a recent server rebuild), I've revisited this and > after a few false starts think I've created the CA and server > certificates correctly u

Re: Self-signed TLS certificates (Minimal setup)

2018-07-13 Thread Danny Horne
On 24/01/18 16:37, Dirk Stöcker wrote: > It's not sooo complicated: > > Short guide for UNIXoid systems: > After a long gap (and a recent server rebuild), I've revisited this and after a few false starts think I've created the CA and server certificates correctly using Dirk's instructions.  On impl

Re: Self-signed TLS certificates (Minimal setup)

2018-01-25 Thread Dirk Stöcker
On Wed, 24 Jan 2018, Harald Koch wrote: It's not sooo complicated: The length of your message contradicts that statement. Well, I assumed that for people who operate a proper postfix instance 3 different command sets and creating two files is't complicated. If that assumption is untrue an

Re: Self-signed TLS certificates (Minimal setup)

2018-01-24 Thread Harald Koch
On Wed, Jan 24, 2018, at 08:37, Dirk Stöcker wrote: > > It's not sooo complicated: The length of your message contradicts that statement. (These days I recommend https://github.com/square/certstrap because it's easily scripted. I'm currently using it in several ansible playbooks, for example.)

Re: Self-signed TLS certificates (Minimal setup)

2018-01-24 Thread Dirk Stöcker
On Wed, 24 Jan 2018, Viktor Dukhovni wrote: One one want to start with "umask 077", to avoid creating world-readable private key files. This should not be necessary with OpenSSL 1.1.0 and later, but older versions (e.g. OpenSSL 1.0.2) create all output files with default permissions, constraine

Re: Self-signed TLS certificates (Minimal setup)

2018-01-24 Thread Viktor Dukhovni
> On Jan 24, 2018, at 11:37 AM, Dirk Stöcker wrote: > > 1) Create a new CA (only once - it is a good idea to add a date in name, in > case you have to change it later): > openssl req -new -x509 -nodes -subj > '/C=DE/ST=Germany/L=Berlin/O=Company/CN=Company Root Certificate > 2018/emailAddres

Re: Self-signed TLS certificates (Minimal setup)

2018-01-24 Thread Dirk Stöcker
On Wed, 24 Jan 2018, Danny Horne wrote: On 22/01/2018 3:52 pm, Viktor Dukhovni wrote: On Jan 22, 2018, at 10:06 AM, Danny Horne wrote: Private CA sounds interesting, will have to read up about it You can get away with a lot less complexity than the usual OpenSSL CA. See, for example: h

Re: Self-signed TLS certificates

2018-01-24 Thread Viktor Dukhovni
> On Jan 24, 2018, at 9:21 AM, Danny Horne wrote: > >> You can get away with a lot less complexity than the usual OpenSSL CA. >> See, for example: >> >> >> https://raw.githubusercontent.com/openssl/openssl/master/test/certs/mkcert.sh >> >> which creates certificates via "openssl x509 -req"

Re: Self-signed TLS certificates

2018-01-24 Thread Danny Horne
On 22/01/2018 3:52 pm, Viktor Dukhovni wrote: > >> On Jan 22, 2018, at 10:06 AM, Danny Horne wrote: >> >> Private CA sounds interesting, will have to read up about it > You can get away with a lot less complexity than the usual OpenSSL CA. > See, for example: > > > https://raw.githubuserconten

Re: Self-signed TLS certificates

2018-01-22 Thread DTNX Postmaster
On 22 Jan 2018, at 15:31, Viktor Dukhovni wrote: > On Jan 22, 2018, at 2:43 AM, DTNX Postmaster wrote: > >>> A "real" certificate is useful if you have customers connecting to >>> your server as a submission service. While self-signed certs work >>> fine for that purpose too, sometimes it's eas

Re: Self-signed TLS certificates

2018-01-22 Thread Viktor Dukhovni
> On Jan 22, 2018, at 10:06 AM, Danny Horne wrote: > > Private CA sounds interesting, will have to read up about it You can get away with a lot less complexity than the usual OpenSSL CA. See, for example: https://raw.githubusercontent.com/openssl/openssl/master/test/certs/mkcert.sh which

Re: Self-signed TLS certificates

2018-01-22 Thread Danny Horne
On 21/01/2018 9:35 pm, Viktor Dukhovni wrote: > > Indeed stick with what you've got. You could (if not intimidated by the > logistics, but we may have more tools for you in this space soonish) also > implement a private CA that signs your no-longer self-signed server cert. > This makes it possible

Re: Self-signed TLS certificates

2018-01-22 Thread Viktor Dukhovni
> On Jan 22, 2018, at 2:43 AM, DTNX Postmaster wrote: > >> A "real" certificate is useful if you have customers connecting to >> your server as a submission service. While self-signed certs work >> fine for that purpose too, sometimes it's easier to avoid talking >> folks into how to import you

Re: Self-signed TLS certificates

2018-01-21 Thread DTNX Postmaster
On 21 Jan 2018, at 21:47, Noel Jones wrote: > On 1/21/2018 2:26 PM, Danny Horne wrote: >> Hi all, >> >> Apologies if this has been discussed before, but currently I use >> self-signed certificates on my Postfix servers for TLS negotiation, I'm >> doing this mainly to keep the costs down. As far

Re: Self-signed TLS certificates

2018-01-21 Thread Viktor Dukhovni
> On Jan 21, 2018, at 4:07 PM, Danny Horne wrote: > > I won't ask you to expand on why wildcard certificates should be avoided > (unless you want to). The short version: 1. People who use wildcard certs tend to DoS themselves by breaking every server with the shared key+certificate c

Re: Self-signed TLS certificates

2018-01-21 Thread Danny Horne
On 21/01/2018 8:47 pm, Viktor Dukhovni wrote: >> I see wildcard SSL certificates are coming down in price, I use >> SSL on one or two websites and am starting to consider one of these >> to cover everything I do. Am I right in assuming a standard wildcard >> SSL certificate will be usable on both

Re: Self-signed TLS certificates

2018-01-21 Thread Noel Jones
On 1/21/2018 2:26 PM, Danny Horne wrote: > Hi all, > > Apologies if this has been discussed before, but currently I use > self-signed certificates on my Postfix servers for TLS negotiation, I'm > doing this mainly to keep the costs down.  As far as I'm aware I don't > have any problems sending / r

Re: Self-signed TLS certificates

2018-01-21 Thread Viktor Dukhovni
> On Jan 21, 2018, at 3:26 PM, Danny Horne wrote: > > Apologies if this has been discussed before, but currently I use > self-signed certificates on my Postfix servers for TLS negotiation, I'm > doing this mainly to keep the costs down. The current cost of TLS certificates that chain up to bro

Self-signed TLS certificates

2018-01-21 Thread Danny Horne
Hi all, Apologies if this has been discussed before, but currently I use self-signed certificates on my Postfix servers for TLS negotiation, I'm doing this mainly to keep the costs down.  As far as I'm aware I don't have any problems sending / receiving email to / from the major providers, but cou