"green address bar" is not a programming feature. If you buy a proper level of SSL certificate, you get the green bar by default. You don't have to, can't do anything more about this.
Have a look here:
http://www.digicert.com/ssl-support/code-to-enable-green-bar.htm[
^]
[Update]
"Green bar" is actually an Extended Validation Certificate. Well, read specification first:
https://www.cabforum.org/Guidelines_v1_4.pdf[
^], than consult your CA software documentation and MSDN to see how exactly you have to proceed to add the attributes.
But: if your CA has no EV-enabled root CA cert that is installed in the browser, it won't work. You can't declare your CA cert as EV enabled, if you are not authorized to be one - but than your CA root cert should have this. Please read this short section:
Issuing criteria.