Fix X509SecurityKey support