md5->sha256, 1024->2048.  Also added print statements to tell the story.
diff --git a/examples/certgen.py b/examples/certgen.py
index f157235..28bdf80 100644
--- a/examples/certgen.py
+++ b/examples/certgen.py
@@ -25,7 +25,7 @@
     pkey.generate_key(type, bits)
     return pkey
 
-def createCertRequest(pkey, digest="md5", **name):
+def createCertRequest(pkey, digest="sha256", **name):
     """
     Create a certificate request.