aboutsummaryrefslogtreecommitdiff
path: root/rpkid
diff options
context:
space:
mode:
Diffstat (limited to 'rpkid')
-rw-r--r--rpkid/rpki/x509.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/rpkid/rpki/x509.py b/rpkid/rpki/x509.py
index 0fef3235..5c3cc37f 100644
--- a/rpkid/rpki/x509.py
+++ b/rpkid/rpki/x509.py
@@ -843,6 +843,12 @@ class CMS_object(DER_object):
self.clear()
self.content = content
+ def get_signingTime(self):
+ """
+ Extract signingTime from CMS signed attributes.
+ """
+ return rpki.sundial.datetime.fromUTCTime(self.get_POW().signingTime())
+
def verify(self, ta):
"""
Verify CMS wrapper and store inner content.