PKI and key exchange implemented