NameError means you do not have a local variable with this name, it has nothing to do with cryptography.
This is a fairly elementary Python mistake. Our documents and resources are generally oriented towards people who have an existing familiarity with Python. I'd strongly encourage you to develop a greater comfort with Python in general. Alex On Wed, Sep 11, 2024 at 7:59 AM Robert Moskowitz <r...@htt-consult.com> wrote: > > I am working on adding keyCertSign to a CA cert using: > > builder = builder.add_extension( > x509.ExtendedKeyUsage(keyCertSign, path_length=None), critical=True, > ) > > keyCertSign is what I have used in my openSSL config file. But I get > the error: > > x509.ExtendedKeyUsage(keyCertSign, path_length=None), critical=True, > ^^^^^^^^^^^ > NameError: name 'keyCertSign' is not defined > > What is the proper arg for this EKU? > > Thanks > > _______________________________________________ > Cryptography-dev mailing list > Cryptography-dev@python.org > https://mail.python.org/mailman/listinfo/cryptography-dev -- All that is necessary for evil to succeed is for good people to do nothing. _______________________________________________ Cryptography-dev mailing list Cryptography-dev@python.org https://mail.python.org/mailman/listinfo/cryptography-dev