I've tried multiple times to get a new certificate that doesn't use the old R3 key, but I just can't get it working. My setup requires me to have a .pfx file, so I run certbot to get a new certificate (or renew, both gave an old version) and then use an openssl command to convert them to a pfx file. But still I'm getting a certificate that makes use of the old DST Root CA X3 certificate. Can anyone help me to get a new certificate that works properly?
You say you're using Ubuntu, but your webservers Server header says it's Kestrel, which, as far as I can Google, is a Windows based service? I'm confused..
I don't have any experience with Kestrel or Windows based stuff, but for other volunteers seeing your thread it might help everybody what webserver you're actually using (you've removed that question from the questionnaire..) and which OS the service is running.
I'm sorry, I actually forgot to mention that, correct. The program that is running on the Ubuntu server is a dotnet program. I know it's not the moest convenient, but that's how I inherited this project, and it's too unstable to change.
I guess so. I'm not gonna lie, I'm kinda lost with the system itself too. I'm hoping I'll be able to fix this without the need to recompile the program, because I'd need to spend hours to days trying to set up the old stuff... I know the program reads the cert file to use it, and when I renew it I just stop the program, renew the cert with certbot, create a new PFX and then restart the program.
I quickly looked in the repo, and this should hopefully answer that question:
I would honestly have no idea where to start with that, and like I said previously, this is an old system I got this way. It'll take hours to days to even set up a proper local environment to even test such changes. I'm not actually properly familiar with dotnet / ASP.NET.
I'm running that in /etc/letsencrypt/live/arcticmanager.com/, and yes, I do it all manually. I don't have trust in this system to do this automatically, so every 3 months I manually update the certificate using certbot. I only noticed recently that I was still getting certs that use the DST Root CA X3, because Chrome still says the cert of the site is fine.
To temper your expectations a little bit: I suspect the PFX is fine, but Kestrel/ASP.NET are doing some kind of #)(#)$&#(% strange #($)#($ f.ck.d up #)($()# weird (#*$(# with the certificate chain and I'm not one able to fix that. But perhaps some ASP.NET guru comes along, who knows.
I indeed spot ISRG Root X1 being used, so it seems like your suspicions are correct and Kestrel/ASP.NET is f*ck#ng with me here. I really hoped it wouldn't come down to me needing to change the source code, but got the feeling it will be imminent.
As I said, I don't have experience with Kestrel/ASP.NET et cetera, but it seems to be so indeed. Kestrel is being fed a correct PFX, but it just ignores the chain in the PFX and does its own thing. I really hate stuff like that. (And thus I'm not touching Windows stuff too..)