'A certificate written by ``RootCredential.initialize`` is an RSA
4096 bit, SHA-256 format.'

def test_certificate_is_rsa_4096_sha_256(self):

    path = FilePath(self.mktemp())
    path.makedirs()
    ca = RootCredential.initialize(path, 'mycluster')
    cert = ca.credential.certificate.original
    key = ca.credential.certificate.getPublicKey().original
    self.assertEqual((crypto.TYPE_RSA, 4096, 'sha256WithRSAEncryption'), (key.type(), key.bits(), cert.get_signature_algorithm()))
