Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSSL PKCS12 broken #7

Open
pepone opened this issue Mar 29, 2024 · 0 comments
Open

OpenSSL PKCS12 broken #7

pepone opened this issue Mar 29, 2024 · 0 comments
Assignees
Labels

Comments

@pepone
Copy link
Member

pepone commented Mar 29, 2024

I got this error while running the makedemocerts.py script from IceGrid/secure demo.

The subject name for your CA will be:
  CN=IceGrid Secure Demo CA,OU=Ice,O=ZeroC\, Inc.,L=Jupiter,ST=Florida,C=US

Do you want to keep this as the CA subject name? (y/n) [y] 
warning: couldn't generate JKS certificate `ca.jks':
module 'OpenSSL.crypto' has no attribute 'PKCS12'
Traceback (most recent call last):
  File "/Users/jose/Documents/3.8/ice-demos/cpp/IceGrid/secure/makedemocerts.py", line 66, in <module>
    factory.create("Master", dns="localhost", extendedKeyUsage=eku).save(os.path.join("certs", "master.p12"))
  File "/opt/homebrew/lib/python3.11/site-packages/IceCertUtils/CertificateUtils.py", line 137, in save
    return self.savePKCS12(path, *args, **kargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/IceCertUtils/PyOpenSSLCertificateUtils.py", line 91, in savePKCS12
    p12 = crypto.PKCS12()
          ^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/cryptography/utils.py", line 71, in __getattr__
    obj = getattr(self._module, attr)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'OpenSSL.crypto' has no attribute 'PKCS12'
@pepone pepone added the bug label Mar 29, 2024
@pepone pepone self-assigned this Mar 29, 2024
pepone added a commit to pepone/icecertutils that referenced this issue Mar 29, 2024
PyOpenSSL has removed support for PKCS12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant