From a47b6c330dfb4657df2c6a7110acf689b073d220 Mon Sep 17 00:00:00 2001 From: James Chuong Date: Wed, 23 May 2018 16:04:30 -0700 Subject: [PATCH] Use serial_number instead of serial (#1251) * Add code coverage badge to README * fixing docs (#1231) * Change cert.serial to serial_number This fixes deprecation warning coming from cryptography package about using cert.serial instead of serial_number. Change-Id: I252820974c77cc1b80639920a5e8c2e874819dda --- lemur/common/defaults.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemur/common/defaults.py b/lemur/common/defaults.py index 3eba7be0..80079232 100644 --- a/lemur/common/defaults.py +++ b/lemur/common/defaults.py @@ -178,7 +178,7 @@ def serial(cert): :param cert: :return: serial number """ - return cert.serial + return cert.serial_number def san(cert):