OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: spopinski on February 24, 2023, 10:50:20 AM

Title: [SOLVED] Freeradius - How to renew default server certificate?
Post by: spopinski on February 24, 2023, 10:50:20 AM
Hi,

I'm doing this on single appliance test environment. How can I renew the default server certificate? Suddenly Windows clients won't connect and the logs were showing expired server certificate errors. Mobile phones still working fine.
QuoteAuth: (5) Login incorrect (eap_peap: (TLS) Alert read:fatal:certificate expired): [admin] (from client APs port 69 cli 30-24-32-46-C6-FC)   

Thanks!

Edit: Found this tutorial for Linux:
https://agix.com.au/freeradius-certificate-has-expired-solution/

How do I do this in Opnsense?
Title: Re: Freeradius - How to renew default server certificate?
Post by: bartjsmit on February 24, 2023, 11:38:54 AM
System, trust, certificates

You may want to give some more background info (PKI structure?) if that doesn't fix your issue
Title: Re: Freeradius - How to renew default server certificate?
Post by: spopinski on February 24, 2023, 12:24:45 PM
Hi, thanks for the reply.

I'm not using the Opnsense cert manager and only use the supplied default cert from freeradius pkg.
Title: Re: Freeradius - How to renew default server certificate?
Post by: bartjsmit on February 24, 2023, 01:28:43 PM
openssl x509 -in <cert.pem> -noout -text | less

Check the expiry of each cert in your chain and renew as required. If that is your root CA cert, you'll need to generate a new PKI from scratch.

How do your Windows clients get their certs? GPO?

Bart...
Title: Re: Freeradius - How to renew default server certificate?
Post by: spopinski on February 24, 2023, 01:55:49 PM
Thanks Bart, will try it out later.

Not using GPO as this is just a small test env and it have multiple OS clients. So, all manual.
Title: Re: Freeradius - How to renew default server certificate?
Post by: spopinski on February 26, 2023, 04:13:44 AM
Update:

Solved by first editing all the necessary .cnf files in the /usr/local/etc/raddb/certs directory (I use WinSCP), stop the freeradius from the web GUI, moved all the all old certs to a backup folder, and then execute the command ./bootstrap

Restarted the Freeradius server and watch the log to see any error. None so far!

Thanks