public static synchronized String getPreferredKeyStore() {
		String path = prunePath(System.getProperty(KEYSTORE_PATH_PROPERTY));
		if (path == null && !SystemUtilities.isInHeadlessMode()) {
			path = prunePath(Preferences.getProperty(KEYSTORE_PATH_PROPERTY));
		}
		return path;
	}
If the system property <i>ghidra.keystore</i> takes precedence in establishing 
the keystore.  If using a GUI and the system property has not been set, the 
user preference with the same name will be used.
@return active keystore path or null if currently not running with a keystore or
one has not been set.
Ghidra/Framework/Generic/src/main/java/ghidra/net/ApplicationKeyManagerFactory.java