check the public key while generating self signed certificate, include sql scripts in the distribution