Comments (16)
From https://github.com/pyca/pyopenssl/blob/main/CHANGELOG.rst#2330-2023-10-25:
Removed OpenSSL.crypto.loads_pkcs7 and OpenSSL.crypto.loads_pkcs12 which had been deprecated for 3 years.
You need to update your application code to use the PKCS12 APIs provided by pyca/cryptography.
from pyopenssl.
Mhils,
we are using PKCS12 APIs provided by pyca/cryptography as suggested in the article you mentioned above.
from pyopenssl.
You're trying to import load_pkcs12
from OpenSSL.crypto
, which has been removed.
from pyopenssl.
let me get my developer in this discussion..
I am not the expert here. I am trying find a solution
what should Import?
from pyopenssl.
sorry to bother you mhils.. we are in a jam that is why I got involved.
from pyopenssl.
here is the section which can help u:
import contextlib
import OpenSSL.crypto
import requests
import tempfile
import re
import json
import urllib
from datetime import date
import pandas as pd
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.serialization import load_pem_private_key
from cryptography.hazmat.primitives.serialization import pkcs12
from cryptography.hazmat.primitives.serialization.pkcs12 import load_key_and_certificates
from pyopenssl.
sorry
#import OpenSSL.crypto
from pyopenssl.
we have commented this line
from pyopenssl.
Here is my management question- How come it was working last week and stop working when we upgraded it to latest version??
from pyopenssl.
Mhils, should I open a new ticket since I really need help urgently. Sorry for being a pest. I am in trouble with timeline due to this issue. please help me.
from pyopenssl.
No, you should not open a new issue.
You've been given an answer as to why this isn't a pyopenssl bug, and you continue to ask incredibly basic programming questions.
We cannot provide basic programming support here.
from pyopenssl.
Alex, thanks for your view. However, I am not the programmer and trying find an answer. trying to figure out this from common sense perspective. it was working before last week and giving the following error and it is clearly related to upgraded library. if you know the answer even if it basic programming. I am just asking to help because this upgrade. Nobody in my company has seen this error message and I am left with no help.
do u have a copy of readme file or something which can give me a clue.
from pyopenssl.
It is pretty unexpected (for me personally anyway) to see an API breaking change like this occur on a minor version bump from 23.2.0 --> 23.3.0.
Is there any documentation on migrating from version 23.2.0 to 23.3.0?
from pyopenssl.
Hi @mhils, do you have an answer to @greyltc's question above? Searching the docs for keywords does not yield instructions to migrate. Thanks!
from pyopenssl.
It is pretty unexpected (for me personally anyway) to see an API breaking change like this occur on a minor version bump from 23.2.0 --> 23.3.0.
pyOpenSSL does not follow semantic versioning, this merely denotes the third release of 2023.
Hi @mhils, do you have an answer to @greyltc's question above? Searching the docs for keywords does not yield instructions to migrate. Thanks!
As mentioned above: You need to update your application code to use the PKCS12 APIs provided by pyca/cryptography.
from pyopenssl.
My team is also using the PKCS12 APIs provided by pyca/cryptography and they dont seem to have the exact same functions. Do you guys own that library as well or no? Could you provide links to migration please @mhils
from pyopenssl.
Related Issues (20)
- Implement PyOpenSSL deprecated functions as calls into Cryptography library HOT 3
- Use SSL_session_reused API HOT 1
- RemoveError: 'pyopenssl' is a dependency of conda and cannot be removed from conda's operating environment. HOT 2
- Add support for retrieving negotiated SRTP profile HOT 4
- pyopenssl-23.3.0 is incompatible with the latest cryptography 42.0.0
- [docs] Use Furo?
- TLS 1.3 Session Resumption with PSKs in pyopenssl? HOT 1
- RFE: is it possible to start making github releases?🤔 HOT 2
- Support for `cryptography.X509.Extensions` in `pyopenssl.X509.add_extensions` etc? HOT 2
- 24.1.0: pytest fails in 3 units and some pytest warnings HOT 12
- 24.1.0: sphinx warnings `reference target not found` HOT 1
- CVE-2023-6129 Safety vulnerability HOT 1
- Some X509 Tests fail on v24.1.0 HOT 1
- Add SSL_OP_CLEANSE_PLAINTEXT to exported set of options
- Use of a Broken or Risky Cryptographic Algorithm [Snyk Vulnerability] HOT 1
- expose `SSL_set_info_callback` (i.e. `Connection.set_info_callback`)
- X.509Name.get_components() doesn't process Subject values like X.509Name.__getattr__() does with Unicode strings. HOT 1
- x509.sign does not work for Ed25519 keys (digest must be NULL) HOT 1
- CVE-2024-4741 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyopenssl.