Generally, a web server CGI process runs with restrictive standard user permissions. This depends on the web server being used, of course. So your WebBatch process may simply not have the correct permissions to access the certificate. Perhaps try a web search on your certificate method for more info.