We created one custom extension and uploaded it through extension 2.0 but its giving the warning about we need distribute the root

The certificate needs to be in two places, on the activegates and on the Dynatrace Environment. 
It would be nice if you could push the certs that you had uploaded to the Dynatrace Environment, but as far as I know this RFE has not been done.