createToken

Creates a Token for the provided certificate. The private key should be
the private key matching the public key in the certificate. It may be
null if the key is not available. Without the private key, the token
cannot be used for signing.