No, American airports don't offer preclearance the way Canadian ones do. (The reason is the relative number of airports in each country: the preclearance in a small handful of Canadian cities enables flights into hundreds of American cities. To do it the other way around would be crazy.)

You will clear customs and immigration when you land in Halifax.

Flying from NYC via Philadelphia to Halifax, I clear Immigration and Customs in Canada?
I have a web application that runs on localhost. I have a self-signed certificate for tomcat configured but when loading the website on firefox, I get a security exception. Can I get a CA to sign my SSL certificate so that this error is not thrown?
