Re: F38 - Which python asn1 library

2023-05-07 Thread Robert Moskowitz
From my colleagues on the IETF PKIX list were a lot of asn.1 oldtimers live... from pyasn1.type import univ from pyasn1.codec.der.decoder import decode as der_decoder from pyasn1.codec.der.encoder import encode as der_encoder import binascii oid = univ.ObjectIdentifier('1.3.6.1.4.1.6715.2.

Re: F38 - Which python asn1 library

2023-05-07 Thread stan via users
On Sun, 7 May 2023 10:42:07 -0400 Go Canes wrote: > On Sun, May 7, 2023 at 10:16 AM stan via users > wrote: > > > > On Sun, 7 May 2023 08:46:26 -0400 > > Robert Moskowitz wrote: > > > > from /usr/share/doc/python3-asn1/README.rst > > of the fedora package python3-asn1 > > python3-asn1 != pya

Re: F38 - Which python asn1 library

2023-05-07 Thread Go Canes
On Sun, May 7, 2023 at 10:16 AM stan via users wrote: > > On Sun, 7 May 2023 08:46:26 -0400 > Robert Moskowitz wrote: > > from /usr/share/doc/python3-asn1/README.rst > of the fedora package python3-asn1 python3-asn1 != pyasn1 which is what the OP is trying to use as per the guidance from his col

Re: F38 - Which python asn1 library

2023-05-07 Thread stan via users
On Sun, 7 May 2023 08:46:26 -0400 Robert Moskowitz wrote: from /usr/share/doc/python3-asn1/README.rst of the fedora package python3-asn1 How to use Python-asn1 == .. note:: You can find more detailed documentation on the `Usage`_ page. .. _Usage: usage.rst Encoding --

Re: F38 - Which python asn1 library

2023-05-07 Thread Go Canes
Trying to see what help (If any) I can offer despite knowing nothing about the module in question (I'm not going to try to preserve the quoting as to who said what, but rather will just respond to the instructions.) > > The README for python3-pyasn1 says that it is the one that you would > >

Re: F38 - Which python asn1 library

2023-05-07 Thread Robert Moskowitz
On 5/5/23 22:51, Samuel Sieb wrote: On 5/5/23 13:01, Robert Moskowitz wrote: What my colleague said, see below. On 5/5/23 15:35, Jonathan Billings wrote: On May 5, 2023, at 14:40, Robert Moskowitz wrote: A colleague sent me a python script that does asn1 encoding.  It starts with: imp

Re: F38 - Which python asn1 library

2023-05-05 Thread Samuel Sieb
On 5/5/23 13:01, Robert Moskowitz wrote: What my colleague said, see below. On 5/5/23 15:35, Jonathan Billings wrote: On May 5, 2023, at 14:40, Robert Moskowitz wrote: A colleague sent me a python script that does asn1 encoding.  It starts with: import asn1 then after a few asn1_enc.wr

Re: F38 - Which python asn1 library

2023-05-05 Thread Robert Moskowitz
What my colleague said, see below. On 5/5/23 15:35, Jonathan Billings wrote: On May 5, 2023, at 14:40, Robert Moskowitz wrote: A colleague sent me a python script that does asn1 encoding.  It starts with: import asn1 then after a few asn1_enc.write(oid, asn1.Numbers.ObjectIdentifier) I

Re: F38 - Which python asn1 library

2023-05-05 Thread Jonathan Billings
On May 5, 2023, at 14:40, Robert Moskowitz wrote: > > A colleague sent me a python script that does asn1 encoding. It starts with: > > import asn1 > > then after a few > > asn1_enc.write(oid, asn1.Numbers.ObjectIdentifier) > > It seems pyasn1 is already installed. It does not provide asn1_

F38 - Which python asn1 library

2023-05-05 Thread Robert Moskowitz
A colleague sent me a python script that does asn1 encoding.  It starts with: import asn1 then after a few asn1_enc.write(oid, asn1.Numbers.ObjectIdentifier) It seems pyasn1 is already installed.  It does not provide asn1_enc. Then I saw a python3-asn1.  I installed that and tried again (in