Working public key export