681
684
# Dump the CA certificate to a file because that's the only way to load
682
685
# it as a trusted CA in the client context.
683
686
for cert, name in [(cacert, 'ca.pem'), (icert, 'i.pem'), (scert, 's.pem')]:
691
691
for key, name in [(cakey, 'ca.key'), (ikey, 'i.key'), (skey, 's.key')]:
696
696
# Create the server context