minfrin commented on code in PR #7:
URL: https://github.com/apache/serf/pull/7#discussion_r2155141023


##########
test/certs/create_certs.py:
##########
@@ -73,18 +73,18 @@ def create_crl(revokedcert, cakey, cacert, crlfile, 
next_crl_days=VALID_DAYS):
     now = datetime.utcnow()
     now_str = now.strftime('%Y%m%d%H%M%SZ')
 
-    revoked.set_serial(serial_number)
-    revoked.set_reason('unspecified')
-    revoked.set_rev_date(now_str)   # revoked as of now
+    revoked.set_serial(serial_number.encode('ascii'))
+    revoked.set_reason(b'unspecified')
+    revoked.set_rev_date(now_str.encode('ascii'))   # revoked as of now
 
     crl.add_revoked(revoked)
     try:
-        exported = crl.export(cacert, cakey, days=next_crl_days, digest=b"md5")
+        exported = crl.export(cacert, cakey, days=next_crl_days, 
digest=b"sha256")
     except TypeError:

Review Comment:
   One of the difficulties is testing this, which is why all the changes are 
related.
   
   With broken CRLs the tests fail. Recreating the certs to make the tests pass 
breaks because create_certs.py won't compile/run.
   
   I can break these up, but don't want to have to explain why the tests fail 
until the patches are brought together, especially when people are looking for 
extra review.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@serf.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to