@@ -1675,8 +1675,8 @@ def test_providedArguments(self):
16751675 tempDir = FilePath (self .mktemp ())
16761676 keyFile = tempDir .child ("mykey.pem" )
16771677
1678- key = keys ._getPersistentRSAKey (keyFile , keySize = 512 )
1679- self .assertEqual (key .size (), 512 )
1678+ key = keys ._getPersistentRSAKey (keyFile , keySize = 1024 )
1679+ self .assertEqual (key .size (), 1024 )
16801680 self .assertTrue (keyFile .exists ())
16811681
16821682 def test_noRegeneration (self ):
@@ -1687,15 +1687,15 @@ def test_noRegeneration(self):
16871687 tempDir = FilePath (self .mktemp ())
16881688 keyFile = tempDir .child ("mykey.pem" )
16891689
1690- key = keys ._getPersistentRSAKey (keyFile , keySize = 512 )
1691- self .assertEqual (key .size (), 512 )
1690+ key = keys ._getPersistentRSAKey (keyFile , keySize = 1024 )
1691+ self .assertEqual (key .size (), 1024 )
16921692 self .assertTrue (keyFile .exists ())
16931693 keyContent = keyFile .getContent ()
16941694
1695- # Set the key size to 1024 bits. Since it exists already, it will find
1696- # the 512 bit key, and not generate a 1024 bit key.
1697- key = keys ._getPersistentRSAKey (keyFile , keySize = 1024 )
1698- self .assertEqual (key .size (), 512 )
1695+ # Set the key size to 2048 bits. Since it exists already, it will find
1696+ # the 1024 bit key, and not generate a 2048 bit key.
1697+ key = keys ._getPersistentRSAKey (keyFile , keySize = 2048 )
1698+ self .assertEqual (key .size (), 1024 )
16991699 self .assertEqual (keyFile .getContent (), keyContent )
17001700
17011701 def test_keySizeZero (self ):
@@ -1706,6 +1706,6 @@ def test_keySizeZero(self):
17061706 tempDir = FilePath (self .mktemp ())
17071707 keyFile = tempDir .child ("mykey.pem" )
17081708
1709- key = keys ._getPersistentRSAKey (keyFile , keySize = 512 )
1709+ key = keys ._getPersistentRSAKey (keyFile , keySize = 1024 )
17101710 key ._keyObject = None
17111711 self .assertEqual (key .size (), 0 )
0 commit comments