adafruit / adafruit/Adafruit_CircuitPython_ATECC

sample atecc_csr.py fails

Open
#23 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
20
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Traceback (most recent call last):
File "atecc_csr.py", line 52, in
my_csr = csr.generate_csr()
File "/home/pi/atecc608/lib/python3.7/site-packages/adafruit_atecc/adafruit_atecc_cert_util.py", line 77, in generate_csr
csr = self._csr_end()
File "/home/pi/atecc608/lib/python3.7/site-packages/adafruit_atecc/adafruit_atecc_cert_util.py", line 127, in _csr_end
self._common,
File "/home/pi/atecc608/lib/python3.7/site-packages/adafruit_atecc/adafruit_atecc_asn1.py", line 97, in get_issuer_or_subject
get_name(country, 0x06, data)
File "/home/pi/atecc608/lib/python3.7/site-packages/adafruit_atecc/adafruit_atecc_asn1.py", line 125, in get_name
data.extend(name)
TypeError: 'str' object cannot be interpreted as an integer

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running atecc_csr.py and reproducing the traceback at line 52. Read adafruit_atecc_cert_util.py around generate_csr and _csr_end, then adafruit_atecc_asn1.py around get_issuer_or_subject and get_name at line 125. Done means the sample generates a CSR without the reported TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cryptography
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.