# this call requires no authentication,
# so we can generate a random keypair here
subject="component"
- keyfile = tempfile.mkstemp()
- certfile = tempfile.mkstemp()
+ (kfd, keyfile) = tempfile.mkstemp()
+ (cfd, certfile) = tempfile.mkstemp()
key = Keypair(create=True)
key.save_to_file(keyfile)
cert = Certificate(subject=subject)