Thread View: alt.privacy.anon-server
7 messages
7 total messages
Started by SEC3
Tue, 27 Oct 2020 20:12
TLS cert at SEC3.NET
Author: SEC3
Date: Tue, 27 Oct 2020 20:12
Date: Tue, 27 Oct 2020 20:12
32 lines
1747 bytes
1747 bytes
In a thread from yesterday I said that inwtx.net's TLS certificate is FUBAR. That was certainly an unfair assessment. Today I realized that my own cert is the one that has a problem. I have been using a cert I purchased from sslmate.com. It has two names associated with it sec3.net www.sec3.net which works perfectly well for my Nginx Web server. But for my mail server the cert also needs to have the name caputo.sec3.net associated with it. Which it currently does not. SSLMate is going to charge me extra money to add that name to my current cert. And so I've opted to say goodby to SSLMate and switch over to the free and more flexible LetsEncrypt certs going forward. -- SEC3 Contact info and PGP key: <https://sec3.net> List of Tor Hidden Services <https://github.com/sec3pinger/tor-hidden-services> List of Nym Keys <https://github.com/sec3pinger/nym-keys> YAMN Help <https://sec3.net/yamnhelp/>
Re: TLS cert at SEC3.NET
Author: Grant Taylor
Date: Tue, 27 Oct 2020 20:53
Date: Tue, 27 Oct 2020 20:53
63 lines
3519 bytes
3519 bytes
On 10/27/20 2:12 PM, SEC3 wrote: > In a thread from yesterday I said that inwtx.net's TLS certificate > is FUBAR. That was certainly an unfair assessment. Today I realized > that my own cert is the one that has a problem. I tip my hat to you for admitting a mistake and for correcting the record. #respect > I have been using a cert I purchased from sslmate.com. It has two > names associated with it > > sec3.net > www.sec3.net > > which works perfectly well for my Nginx Web server. But for my mail > server the cert also needs to have the name > > caputo.sec3.net > > associated with it. Which it currently does not. I first ran into this issue with a perspective email client about five years ago. I started seeing Thunderbird users discussing the same type of problem about three years ago. I'm not surprised that more things are validating that the Common Name / Subject Alternative Name(s) contains the name that you are connecting to. Historically email has not been as strict as web. But the quickly moving trend is for email to parity the web's strict security. PSA / ProTip: Some web browsers are starting to only use the name(s) in the SAN and ignoring the CN. So, make sure that you add the CN as an SAN, even if your cert only has one name. > SSLMate is going to charge me extra money to add that name to my > current cert. And so I've opted to say goodby to SSLMate and switch > over to the free and more flexible LetsEncrypt certs going forward. I've never used the Let's Encrypt official client. I've always used the acme.sh client. I've had quite good luck with acme.sh. It does what I want and only what I want. It does not force me to relinquish control of my server to it. It renews the cert(s) in it's directory. Then I have /my/ automation copy those cert(s) & key(s) where /I/ want them to be. My server, my rules. Software that tries to dictate to me gets ejected. Link - acmesh-official / acme.sh - https://github.com/acmesh-official/acme.sh The only thing I've not been able to do with a cert from Let's Encrypt, via acme.sh, is S/MIME. But that's not something that they support. So I've got no room to complain. Everything else that I've tried to do with Let's Encrypt / acme.sh has worked out to my satisfaction. This includes adding / removing names from the SAN at my whim. The DNS based validation is nice too. -- Grant. . . . unix || die
Re: TLS cert at SEC3.NET
Author: inwtx
Date: Tue, 27 Oct 2020 23:12
Date: Tue, 27 Oct 2020 23:12
46 lines
3453 bytes
3453 bytes
> > On 10/27/20 2:12 PM, SEC3 wrote: > >> In a thread from yesterday I said that inwtx.net's TLS certificate is FUBAR. That was certainly an unfair assessment. Today I realized that my own cert is the one that has a problem. > > I tip my hat to you for admitting a mistake and for correcting the record. > > #respect I didn't take offence. It was a problem that needed investigating. > <snip> > > I first ran into this issue with a perspective email client about five years ago. I started seeing Thunderbird users discussing the same type of problem about three years ago. I'm not surprised that more things are validating that the Common Name / Subject Alternative Name(s) contains the name that you are connecting to. > > Historically email has not been as strict as web. But the quickly moving trend is for email to parity the web's strict security. > > PSA / ProTip: Some web browsers are starting to only use the name(s) in the SAN and ignoring the CN. So, make sure that you add the CN as an SAN, even if your cert only has one name. What is a SAN? > > <snip> > > I've never used the Let's Encrypt official client. I've always used the acme.sh client. > > I've had quite good luck with acme.sh. It does what I want and only what I want. It does not force me to relinquish control of my server to it. It renews the cert(s) in it's directory. Then I have /my/ automation copy those cert(s) & key(s) where /I/ want them to be. My server, my rules. Software that tries to dictate to me gets ejected. > What is the acme.sh? I just used the program by itself. The only thing that was wroung wrong with it was that is somehow messed up a ls -a, causing the files and folders to start alphabetically over in the middle of the list and acme didn't show up in the list. I was able to type in the name and execute it anyway. I had to copy it to the name z-acme to see it at the end of the list, but even deleting just acme didn't fix the ls -a problem. > Link - acmesh-official / acme.sh > - https://github.com/acmesh-official/acme.sh > > The only thing I've not been able to do with a cert from Let's Encrypt, via acme.sh, is S/MIME. But that's not something that they support. So I've got no room to complain. Everything else that I've tried to do with Let's Encrypt / acme.sh has worked out to my satisfaction. This includes adding / removing names from the SAN at my whim. The DNS based validation is nice too. > While you mention S/MIME, the emails you sent me several days ago, when I tried to do a mutt reply, your email kept causing mutt to ask for a MIME password. Whether I gave it something or didn't give it a password, mutt would not send the reply.
Re: TLS cert at SEC3.NET
Author: Grant Taylor
Date: Wed, 28 Oct 2020 00:57
Date: Wed, 28 Oct 2020 00:57
105 lines
4667 bytes
4667 bytes
On 10/27/20 5:12 PM, inwtx wrote:
> I didn't take offence. It was a problem that needed investigating.
:-)
> What is a SAN?
I thought that I expanded the acronym in the previous email. In case I
didn't.
Subject Alternative Name(s)
Maybe you're asking what is a Subject Alternative Name in the context of
a TLS certificate.
TLS certificates have what is called a Common Name (a.k.a. CN) that is
(used to be) /the/ identity that the certificate is for. (Times are a
changing. See the PSA / ProTip in the last email.)
Using only the CN means that you would need to have multiple different
certificates to support multiple names.
Then at some point (I have no idea when) the Subject Alternative Name
extension appeared where it was possible to put multiple names, or
subjects, in a certificate. Meaning that you could put multiple names
in one certificate.
Just like SEC3 wants to have the following three names in the same
certificate.
- sec3.net
- www.sec3.net
- caputo.sec3.net
In light of the PSA / ProTip from the previous email, I would recommend
using caputo.sec3.net as the CN and listing all three of the above names
in the SAN field.
Please ask follow up questions if you want to. (Either here or direct.)
> What is the acme.sh?
acme.sh is a Let's Encrypt (or any other CA that supports the ACME
protocol) /client/, one of many. I don't actually know the name of the
client that Let's Encrypt themselves provide. "CertBot" comes to mind
as another Let's Encrypt (ACME protocol) client. It happens to be
written in -- I think -- Borne (like) shell language.
> I just used the program by itself.
/Which/ program? The client that Let's Encrypt produces? Something else?
> The only thing that was wrong with it was that is somehow messed up
> a ls -a, causing the files and folders to start alphabetically over
> in the middle of the list and acme didn't show up in the list.
That's odd. I wonder if you had (or still have) a file in the directory
that has a file name that is an option to ls, specifically one that
alters sorting.
If you still have the problem, please try the following command:
ls -a -- *
The double dash causes most programs to not interpret anything that
comes after.
Hypothetically, the following commands seem to do the same thing:
ls -a -- *
and
ls -a *
But the difference is what happens if you have a file named "-r". The
first command will treat "-r" as a file name. The second command will
treat "-r" (and anything like it) as an option to the ls command.
> I was able to type in the name and execute it anyway. I had to copy
> it to the name z-acme to see it at the end of the list, but even
> deleting just acme didn't fix the ls -a problem.
I'm sure that it's possible to figure out what happened, and maybe why
it happened. But it's your call if you care enough and want to mess
with it.
> While you mention S/MIME, the emails you sent me several days ago,
> when I tried to do a mutt reply, your email kept causing mutt to ask
> for a MIME password. Whether I gave it something or didn't give it
> a password, mutt would not send the reply.
Hum.
I sign my emails. I wonder if you configured mutt to use a certificate
at some point in the past and it's trying to do so when replying to me.
I know that I've not done anything non-standard to the emails that I send.
I don't do much with mutt, so I can't say for sure.
--
Grant. . . .
unix || die
Re: TLS cert at SEC3.NET
Author: inwtx
Date: Wed, 28 Oct 2020 13:14
Date: Wed, 28 Oct 2020 13:14
74 lines
3890 bytes
3890 bytes
> <snip> > >> What is a SAN? > > I thought that I expanded the acronym in the previous email. In case I didn't. > > Subject Alternative Name(s) > > Maybe you're asking what is a Subject Alternative Name in the context of a TLS certificate. > > TLS certificates have what is called a Common Name (a.k.a. CN) that is (used to be) /the/ identity that the certificate is for. (Times are a changing. See the PSA / ProTip in the last email.) > > Using only the CN means that you would need to have multiple different certificates to support multiple names. > > Then at some point (I have no idea when) the Subject Alternative Name extension appeared where it was possible to put multiple names, or subjects, in a certificate. Meaning that you could put multiple names in one certificate. > > Just like SEC3 wants to have the following three names in the same certificate. > > - sec3.net > - www.sec3.net > - caputo.sec3.net Hadn't heard of this. I guess that is what is happening when I do a: acme inwtx.net www.inwtx.net mail.inwtx.net > <snip> > > >> I just used the acme program by itself. > > /Which/ program? The client that Let's Encrypt produces? Something else? wget https://github.com/kshcherban/acme-nginx/releases/download/v0.1.2/acme-nginx chmod +x acme-nginx sudo /root/acme-nginx -d inwtx.net -d www.inwtx.net -d mail.inwtx.net Results: /etc/ssl/private/letsencrypt-account.key letsencrypt-domain.key letsencrypt-domain.pem nginx-selfsigned.key ssl-cert-snakeoil.key >> The only thing that was wrong with it was that is somehow messed up a ls -a, causing the files and folders to start alphabetically over in the middle of the list and acme didn't show up in the list. That causes this strange result: root@miximum.XYZ~# ls -a . .bash_history .nano_history .ssh CD.sh.txt DailyBkup.txt EX.txt MixCheckAllpingers.txt Root Crons.txt acme-nginx .. .bashrc .profile CD.sh CheckIptables.sh EX.filescript InwtxServerBkup.txt MixmasterChkErr.sh Tomb-2.7 sent .aptitude .gnupg .selected_editor CD.sh.folders DailyBkup.sh EX.sh MixCheckAllpingers.sh PgmsRunningGlobalChk.sh Tomb-2.7.tar.gz z_nginx_acme -- or -- root@miximum.XYZ~# ls -a -- * CD.sh CheckIptables.sh EX.filescript InwtxServerBkup.txt MixmasterChkErr.sh Tomb-2.7.tar.gz z_nginx_acme CD.sh.folders DailyBkup.sh EX.sh MixCheckAllpingers.sh PgmsRunningGlobalChk.sh acme-nginx CD.sh.txt DailyBkup.txt EX.txt MixCheckAllpingers.txt Root Crons.txt sent Tomb-2.7: . .. AUTHORS.txt COPYING.txt ChangeLog.txt INSTALL.txt KNOWN_BUGS.txt Makefile README.txt doc extras secrets secrets.tomb secrets.tomb.key tomb root@miximum.XYZ~# > I'm sure that it's possible to figure out what happened, and maybe why it happened. But it's your call if you care enough and want to mess with it. > > I don't do much with mutt, so I can't say for sure. > I now know to copy your reply and send it back in a new email.
Re: TLS cert at SEC3.NET
Author: Grant Taylor
Date: Thu, 29 Oct 2020 01:00
Date: Thu, 29 Oct 2020 01:00
67 lines
4186 bytes
4186 bytes
On 10/28/20 7:14 AM, inwtx wrote:
> Hadn't heard of this. I guess that is what is happening when I do a:
> acme inwtx.net www.inwtx.net mail.inwtx.net
Probably. Though, depending on how the acme client behaves, it might be
using inwtx.net as the CN and www.inwtx.net and mail.inwtx.net as SANs.
If this is the case, I'd suggest trying the following:
acme inwtx.net inwtx.net www.inwtx.net mail.inwtx.net
> wget https://github.com/kshcherban/acme-nginx/releases/download/v0.1.2/acme-nginx
> chmod +x acme-nginx
> sudo /root/acme-nginx -d inwtx.net -d www.inwtx.net -d mail.inwtx.net
> Results:
> /etc/ssl/private/letsencrypt-account.key letsencrypt-domain.key letsencrypt-domain.pem nginx-selfsigned.key ssl-cert-snakeoil.key
Thank you for clarifying. I'm not familiar with acme-nginx. I also
don't have the time to review it at the moment. Seeing as how I'm not
running nginx and it's in the name, I doubt I /personally/ have much use
for it. But, if it's working for you, then more power to you.
> That causes this strange result:
>
> root@miximum.XYZ~# ls -a
>
> .. .bash_history .nano_history .ssh CD.sh.txt DailyBkup.txt EX.txt MixCheckAllpingers.txt Root Crons.txt acme-nginx
> ... .bashrc .profile CD.sh CheckIptables.sh EX.filescript InwtxServerBkup.txt MixmasterChkErr.sh Tomb-2.7 sent
> ..aptitude .gnupg .selected_editor CD.sh.folders DailyBkup.sh EX.sh MixCheckAllpingers.sh PgmsRunningGlobalChk.sh Tomb-2.7.tar.gz z_nginx_acme
>
> -- or --
>
> root@miximum.XYZ~# ls -a -- *
> CD.sh CheckIptables.sh EX.filescript InwtxServerBkup.txt MixmasterChkErr.sh Tomb-2.7.tar.gz z_nginx_acme
> CD.sh.folders DailyBkup.sh EX.sh MixCheckAllpingers.sh PgmsRunningGlobalChk.sh acme-nginx
> CD.sh.txt DailyBkup.txt EX.txt MixCheckAllpingers.txt Root Crons.txt sent
>
> Tomb-2.7:
> .. .. AUTHORS.txt COPYING.txt ChangeLog.txt INSTALL.txt KNOWN_BUGS.txt Makefile README.txt doc extras secrets secrets.tomb secrets.tomb.key tomb
> root@miximum.XYZ~#
This is sort of what I would expect. I don't see any files that would
be interpreted as flags to ls.
Tough the "..." and "..aptitude" surprise me. But that's neither here
nor there.
The "*" in the second command doesn't include dot files. You'd need to
add ".*" to it.
It's also listing the Tomb-2.7 directory explicitly and it's contents,
do to the vagaries of how ls behaves. -- There are flags to make it
just list directories instead of their contents. But I don't know that
it's worth that here.
Both outputs look relatively normal to me. If there's something
specific you don't like about them, please describe what it is doing /
not doing that you would like to be different.
> I now know to copy your reply and send it back in a new email.
That's just strange. You shouldn't need to do that.
--
Grant. . . .
unix || die
Re: TLS cert at SEC3.NET
Author: Grant Taylor
Date: Thu, 29 Oct 2020 01:02
Date: Thu, 29 Oct 2020 01:02
19 lines
1700 bytes
1700 bytes
On 10/28/20 7:00 PM, Grant Taylor wrote:
> Probably. Though, depending on how the acme client behaves, it might be
> using inwtx.net as the CN and www.inwtx.net and mail.inwtx.net as SANs.
> If this is the case, I'd suggest trying the following:
>
> acme inwtx.net inwtx.net www.inwtx.net mail.inwtx.net
It looks like your current certificate has the following:
CN: inwtx.net
SAN: inwtx.net mail.inwtx.net www.inwtx.net
So the CN is also listed as a SAN. I think that's a good thing.
--
Grant. . . .
unix || die
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads