Added PKI support.