Skip to content

Commit b2ef8a8

Browse files
committed
docs: fix certificate verification example in README
- Add skip comment to prevent CI failures - Use generic cert filename
1 parent 15e9f2a commit b2ef8a8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,13 @@ mdoc.disclosure_map
194194
For production use, verify both the X.509 certificate chain and element hashes:
195195

196196
````python
197+
# skip in doc examples (requires your_ca_cert.pem and device_response_bytes)
197198
from pymdoccbor.mdoc.verifier import MdocCbor
198199
from cryptography import x509
199200
from cryptography.hazmat.backends import default_backend
200201

201202
# Load trusted root certificates
202-
with open('iaca_cert.pem', 'rb') as f:
203+
with open('your_ca_cert.pem', 'rb') as f:
203204
iaca_cert = x509.load_pem_x509_certificate(f.read(), default_backend())
204205

205206
mdoc = MdocCbor()
@@ -211,10 +212,6 @@ For complete documentation on certificate chain verification and hash verificati
211212

212213
### Verify the Mobile Security Object
213214

214-
````
215-
216-
### Verify the Mobile Security Object
217-
218215
````
219216
from pymdoccbor.mso.verifier import MsoVerifier
220217

0 commit comments

Comments
 (0)