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
This commit is contained in:
James Chuong 2018-05-23 16:04:30 -07:00 committed by kevgliss
parent c26ae16060
commit a47b6c330d

View File

@ -178,7 +178,7 @@ def serial(cert):
:param cert:
:return: serial number
"""
return cert.serial
return cert.serial_number
def san(cert):