Hello @Azure Ektos ,
This is a great question.
Does azure IoT hub have any limits in this case ?
Azure IoT Hub accepts the certificate with the set validity.
As Asergaz already said in the initial response, there is no hard rule for the maximum set expiration of the certificate.
What maximum expiration can we set for Root CA cert for IoT Hub?
In the below example\test, I have created a test root CA cert with a validity of 100 years and uploaded it to IoTHub.
May we know how many years of validity you are looking for in your scenario?
Root certificates also typically have long periods of validity, compared to intermediate certificates. They will often last for 10 or 20 years, which gives enough time to prepare for when they expire. However, there still can be hiccups in the process of switching to the new root certificate.Ref
Reference:OpenSSL
openssl req -x509 -sha256 -new -nodes -key rootCAKey.pem -days 36500 -out rootCACert.pem
Please do comment in the below section for further help in this matter.