-
Notifications
You must be signed in to change notification settings - Fork 12
Release v0.5.0 #30
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
Merged
Release v0.5.0 #30
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Formato XML del Archivo Electrónico de Cesión" of the "Registro electrónico de cesión de créditos". Source (2019-04-16): http://www.sii.cl/factura_electronica/schema_cesion.zip Some files were ignored: - 'DTE_v10.xsd': there is a newer version in the repo. - 'SiiTypes_v10.xsd': there is a newer version in the repo. - 'xmldsignature_v10.xsd': identical to the version in the repo. The included files are up to date with respect to those in repository/project "LibreDTE" (39156263) https://github.com/LibreDTE/libredte-lib/tree/39156263/schemas MD5 checksums: - 82d426fc3bd5f3a29e61a1d07ed4d6dd schema_cesion.zip - 8e80522d91bcf99077c12e15354eeae4 schema_cesion/AEC_v10.xsd - 8db534d686bc84fc7960199dd5fdacd8 schema_cesion/Cesion_v10.xsd - b2fd1907af733ae9401604c694837a85 schema_cesion/DTECedido_v10.xsd - e72ee34d798224f31a5127edda712bbf schema_cesion/DTE_v10.xsd - 620cf4867d8ba9c16dba74ab05830963 schema_cesion/Recibos_v10.xsd - b6a63aa427e3d528e46a7d94ccbdcb32 schema_cesion/SiiTypes_v10.xsd - 8b83aaae477a57d829b075230237102c schema_cesion/xmldsignature_v10.xsd
data.ref: add XML schemas for "Cesion" (RTC)
With permission from the "cesionario" of the "cesion" (ST Capital S.A.). The DTE XML file was extracted from the AEC XML file.
…c-files test_data: fix and add real SII DTE & AEC XML files
For commonly used/references XML-related classes.
libs.xml_utils: misc improvements
Add helper properties. Also: - Improve docstrings and comments a little. - Implement tests.
And add some test stubs.
- `vendedor_rut` - `deudor_rut`
- `firma_documento_dt_naive` - `signature_value_base64` - `signature_x509_cert_base64` - `emisor_giro` - `emisor_email` - `receptor_email`
dte: many improvements
Retrieved on 2019-04-23. Details ------- *.google.com Identity: *.google.com Verified by: Google Internet Authority G3 Expires: 18/06/19 Subject Name C (Country): US ST (State): California L (Locality): Mountain View O (Organization): Google LLC CN (Common Name): *.google.com Issuer Name C (Country): US O (Organization): Google Trust Services CN (Common Name): Google Internet Authority G3 Issued Certificate Version: 3 Serial Number: 5C 3F 5E 0A F8 7F E3 83 F5 11 3E 51 23 52 EE 26 Not Valid Before: 2019-03-26 Not Valid After: 2019-06-18 Certificate Fingerprints SHA1: F5 19 59 D6 6D 50 BB DF 5E EC C0 9D E7 21 10 F6 C6 03 45 B5 MD5: 5F C6 5C 5E 61 F0 66 74 77 B9 4E 6C FC B2 2F 2C Public Key Info Key Algorithm: Elliptic Curve Key Parameters: 06 08 2A 86 48 CE 3D 03 01 07 Key Size: 256 Key SHA1 Fingerprint: 6F 37 DE 91 C0 D8 E1 AD 64 8E 30 F7 EF 1C 00 22 15 E8 92 6D Public Key: 04 03 69 59 22 D7 2D B2 66 E5 E4 73 73 51 09 9A F4 88 6F 3D 27 00 D4 FE 6F 5D 6B F9 78 52 50 20 1B 7D 08 52 FB 83 3F F7 56 09 81 51 3A 52 D6 49 AC B3 BB 18 6C 6F A7 5B 55 FC 32 FC E7 B3 5A 2C 45 Extended Key Usage Allowed Purposes: Server Authentication Critical: No Key Usage Usages: Digital signature Critical: Yes
The file is the output of command:
./scripts/clean_dte_xml_file.py file \
'tests/test_data/sii-dte/DTE--76354771-K--33--170.xml' \
'tests/test_data/sii-dte/DTE--76354771-K--33--170--cleaned.xml'
Although it is quite old (2002), it is helpful to test some cases. Source: from a sample DTE in http://www.sii.cl/factura_electronica/factura_mercado/manual_certificacion.pdf
Extract PEM-encoded data of the X.509 certificate inside XML document 'test_data/sii-dte/DTE--76354771-K--33--170.xml'
test_data: add files
Changelog: - 2019.1 (2019-04-09) https://github.com/stub42/pytz/blob/release_2019.1/tz/NEWS Code diff: stub42/pytz@release_2018.9...release_2019.1
Changelog: - 3.9.2 (2019-03-03) https://www.django-rest-framework.org/community/release-notes/#392 - 3.9.1 (2019-01-16) https://www.django-rest-framework.org/community/release-notes/#391 - 3.9.0 (2018-10-18) https://www.django-rest-framework.org/community/release-notes/#390 Code diff: encode/django-rest-framework@3.8.2...3.9.2
To the latest version of the 4.2.x series. Changelog: - 4.2.6 (2019-01-02) https://github.com/lxml/lxml/blob/lxml-4.2.6/CHANGES.txt#L5 lxml/lxml@lxml-4.2.5...lxml-4.2.6
> [..] a package which provides cryptographic recipes and primitives > to Python developers. Our goal is for it to be your "cryptographic > standard library". https://cryptography.io https://github.com/pyca/cryptography
(not the latest version because of a compatibility issue with package 'signxml' v2.6.0) > A Python wrapper around the OpenSSL library. https://pyopenssl.org https://github.com/pyca/pyopenssl
> XML Signature in Python. > SignXML is an implementation of the W3C XML Signature standard > in Python. This standard (also known as XMLDSig and RFC 3275) is > used to provide payload security in SAML 2.0 and WS-Security, > among other uses. https://signxml.readthedocs.io https://github.com/XML-Security/signxml
(no explanation necessary)
requirements: add and update packages
…-tree libs.xml_utils: fix class alias `XmlElementTree`
The file is the output of command:
./scripts/clean_dte_xml_file.py file \
'tests/test_data/sii-dte/DTE--76399752-9--33--25568.xml' \
'tests/test_data/sii-dte/DTE--76399752-9--33--25568--cleaned.xml'
Extract PEM-encoded data of the X.509 certificate inside XML document 'test_data/sii-dte/DTE--76399752-9--33--25568.xml'
Extract XML signature value (base64-encoded binary data) from these XML documents: - 'test_data/sii-dte/DTE--76354771-K--33--170.xml' - 'test_data/sii-dte/DTE--76399752-9--33--25568.xml'
test_data: add files
libs: add module `encoding_utils`
Among others, it includes functions: - `load_pem_x509_cert` - `add_pem_cert_header_footer` - `remove_pem_cert_header_footer` Some tests have not been implemented yet.
libs: add module `crypto_utils`
…elds dte.data_models: modify new fields of `DteDataL2`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DteDataL2#29, 2019-04-25) dte.data_models: modify new fields ofDteDataL2crypto_utils#28, 2019-04-25) libs: add modulecrypto_utilsencoding_utils#27, 2019-04-25) libs: add moduleencoding_utilsXmlElementTree#25, 2019-04-25) libs.xml_utils: fix class aliasXmlElementTree