added path.resolve() around x509 path so that relative path won't break