I'd like to be able to get the default DN from openssl.cnf. http://www.php.net/manual/en/openssl.installation.php talks about where the openssl.cnf file is stored by default but when it talks about OPENSSL_CONF... it seems like that'd be an OS environmental variable - not one that PHP would be able to get access to unless it did something like exec('echo %OPENSSL_CONF%') or something.
I guess I could create an X.509 cert with OpenSSL and get the DN from that but that seems a little excessive. Plus, that doesn't fail very gracefully if the openssl.conf file isn't present. At least in so far as I know..
Any ideas?