Getting a "certificate is not trusted" error for iOS Distribution Certificate

To support an older version of an iOS app, I needed to install Mojave with Xcode 9.

I create a CSR and from there generate an iOS Distribution certificate online, which I download and double click to install in Keychain. However, when viewing in Keychain, it shows in red "iPhone Distribution: CompanyName certificate is not trusted".

I'm not sure what I'm doing wrong as I follow the instructions to the T and have done this in the past with success.

NOTE: I tried this with Sierra as well and got the same issue. It only seems to work on Catalina, which doesn't help me because I need an older version of Xcode.
Apple has updated Developer Relations Intermediate Certificate. Just download the certificate from here and install it. If the it doesn't works have a look on https://developer.apple.com/support/expiration/

100
God bless you @patelgaurav4u_ios!
10
I LOVE YOU PATEL
You beautiful man
PATEL You the real MVP
Patel you are a legend
THANK YOU PATEL!!!
Patel, thank you so much!
You are an angel, thank you!
Thank you, I was crying for 2 days because of this :v
So much wow Patel, thsnks <3
Thank you, thank you, thank you so much, @patelgaurav4u_ios!!! You really saved my day here, having been stuck for hours wondering why my apps built with my developer account suddenly wouldn't run!
Thank you! I spent hours dealing with this, glad I found this post and solution.
@patelgaurav4u_ios Thank you so much! I joined the Apple forums just to thank you. Worked instantly!
<3
Thanks patel, that helped.
Getting a "certificate is not trusted" error for iOS Distribution Certificate
 
 
Q