MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / get_cert

Method get_cert

windows/crypto/cryptmsg.py:48–55  ·  view source on GitHub ↗

Return embded :class:`Certificate` number ``index``. .. note:: Not all embded certificate are directly used to sign the :class:`CryptObject`.

(self, index=0)

Source from the content-addressed store, hash-verified

46 return self.get_param(gdef.CMSG_CERT_PARAM, index)
47
48 def get_cert(self, index=0):
49 """Return embded :class:`Certificate` number ``index``.
50
51 .. note::
52
53 Not all embded certificate are directly used to sign the :class:`CryptObject`.
54 """
55 return windows.crypto.Certificate.from_buffer(self.get_raw_cert(index))
56
57 @property
58 def certs(self):

Callers 1

certsMethod · 0.95

Calls 2

get_raw_certMethod · 0.95
from_bufferMethod · 0.45

Tested by

no test coverage detected