Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
I named this library after my wife, whom I trust the most. ❤️
This project offers you a great alternative to certifi. It is a simple yet efficient wrapper around MIT licensed rustls-native-certs.
This project allows you to access your original operating system trust store, thus helping you to verify the remote peer certificates.
It works as-is out-of-the-box for MacOS, Windows, and Linux. Automatically fallback on Certifi otherwise. Available on PyPy and Python 3.7+
If your particular operating system is not supported, we will make this happen! Open an issue on the repository.
For now, it is not supported to call your OS certificate verify native function. Use your Python native capabilities for it.
Using pip:
pip install wassima -U
A) Create a SSLContext
import wassima
ctx = wassima.create_default_ssl_context()
# ... The context magically contain your system root CAs, the rest is up to you!
B) Retrieve individually root CAs in a binary form (DER)
import wassima
certs = wassima.root_der_certificates()
# ... It contains a list of certificate represented in bytes
C) Retrieve individually root CAs in a string form (PEM)
import wassima
certs = wassima.root_pem_certificates()
# ... It contains a list of certificate represented in string
D) Retrieve a single bundle (concatenated) list of PEM certificates like certifi does
import wassima
bundle = wassima.generate_ca_bundle()
# ... It contains a string with all of your root CAs!
# It is not a path but the file content itself.
C) Register your own CA in addition to the system's
import wassima
wassima.register_ca(open("./myrootca.pem", "r").read())
bundle = wassima.generate_ca_bundle()
# ... It contains a string with all of your root CAs, PLUS your own 'myrootca.pem'.
# It is not a path but the file content itself.
FAQs
Access your OS root certificates with utmost ease
We found that wassima demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.