/usr/share/icinga2/pki/pkifuncs is in icinga2-common 2.1.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
| 1 2 3 4 5 6 7 8 9 10 11 12 | check_pki_dir() {
	if [ -z "$ICINGA_CA" ]; then
		echo "Please set the ICINGA_CA environment variable to the path for your Icinga CA." >&2
		echo "e.g.: export ICINGA_CA=\"$HOME/icinga-ca\"" >&2
		exit 1
	fi
	if [ ! -d "$ICINGA_CA" ]; then
		echo "The path you specified in the ICINGA_CA environment variable ($ICINGA_CA) does not exist or is not a directory." >&2
		exit 1
	fi
}
 |