Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1421 commits
Select commit Hold shift + click to select a range
0e75688
Removed modules and fix libraries for py2exe
reingart Sep 3, 2022
5479219
Merge branch 'main' of github.com:reingart/pyafipws into py2exe
reingart Sep 3, 2022
3003dde
Absolute imports for py2exe
reingart Sep 3, 2022
0405204
Build wsfev1 & rece1 with py2exe
reingart Sep 3, 2022
de6aaf7
GitHub action for py2exe (windows)
reingart Sep 3, 2022
de4e787
Fix python 3.10 version
reingart Sep 3, 2022
667091f
Fix windows syntax requeriments installation
reingart Sep 3, 2022
60d20f1
Install py2exe
reingart Sep 3, 2022
6700e38
Fix py2exe error due python2 syntax 3rd-party lib
reingart Sep 3, 2022
8c92606
Port certificate download for windows GH action
reingart Sep 3, 2022
f67be28
Change to dist directory with the ini and crt
reingart Sep 3, 2022
0f636f2
Upload dist
reingart Sep 3, 2022
2bd4a72
Move windows deps to requirements-dev.txt
reingart Sep 6, 2022
908840d
Publish Windows pre-release w/ GH Action
reingart Sep 6, 2022
6180797
Add dependency on previous GH action job
reingart Sep 6, 2022
9ec4a2b
Split test / release GH action jobs
reingart Sep 6, 2022
0a8e9f8
Download build artifact & move test cert/ini step
reingart Sep 6, 2022
f08184e
Tag pre-release (required)
reingart Sep 6, 2022
8e92342
Fix destination path after GH Action download
reingart Sep 6, 2022
302358c
Zip dist to be released
reingart Sep 6, 2022
815c218
Only run action once on push
reingart Sep 6, 2022
ff664be
Pin ticket number and hash in release
reingart Sep 6, 2022
9541b56
Fix missing win32 library not detected by py2exe
reingart Sep 6, 2022
075a723
Fix import error in py2exe windows exe built
reingart Sep 6, 2022
e743120
Test win32 COM Server automation
reingart Sep 6, 2022
7dbe12b
Fix automation test
reingart Sep 7, 2022
c8f1c9c
Remove win32 python automation due DLL conflict
reingart Sep 7, 2022
c557548
Windows Automation test for WSFEv1
reingart Sep 7, 2022
c352700
Use Windows Server 2022 for GH Action
reingart Sep 7, 2022
6421077
Split & check component registration WSAA/WSFEv1
reingart Sep 7, 2022
3f465eb
Build a console script to debug registration
reingart Sep 7, 2022
8213eb3
Print WSFEv1 registration error log for debugging
reingart Sep 8, 2022
acb79d3
Revert WSAA to com_server and fix WSFEv1 script
reingart Sep 8, 2022
4bfa573
Rename windows executables, and revert com_server
reingart Sep 9, 2022
5e7e23b
Fix installer template for new py2exe executables
reingart Sep 9, 2022
cfd771e
Cleanup installer old py2exe code
reingart Sep 10, 2022
5b5eb92
Fix version number
reingart Sep 10, 2022
7344230
Build & test for 32 and 64 bits in windows
reingart Sep 10, 2022
ddec334
Install python for 32 and 64 bits
reingart Sep 10, 2022
3d1fea9
Release latest tagging
reingart Sep 10, 2022
601dc5e
Remove auto skip if check fails
reingart Sep 10, 2022
0f805b0
Fix wsaa check
reingart Sep 10, 2022
2fdf328
Pester PowerShell tests for WSAA and WSFEv1
reingart Sep 10, 2022
0437388
Skip registry issues in debug
reingart Sep 10, 2022
71d6d75
Fix Pester 5 new syntax
reingart Sep 10, 2022
7cfde7d
Electronic Invoice pester test in PowerShell
reingart Sep 10, 2022
4b21898
PowerShell Pester test for exception and errors
reingart Sep 10, 2022
495bb26
Use a different webservice for cli tests vs COM
reingart Sep 10, 2022
98f18bf
Fix pester tests
reingart Sep 10, 2022
b003225
Group pester common code
reingart Sep 10, 2022
a1f3b8b
Fix pester exception test
reingart Sep 10, 2022
f6d11ba
Add another pester test for disabled exceptions
reingart Sep 11, 2022
768a1ee
Convert all relative to absolute imports (py2exe)
reingart Sep 11, 2022
0ffafcf
Exception & Traceback pester tests
reingart Sep 11, 2022
974b978
Fix missing closing block in pester test
reingart Sep 12, 2022
739145a
Fix test wildcard
reingart Sep 13, 2022
439c12c
Release version, branch & short hash env-vars
reingart Sep 13, 2022
cbf02bb
Remove tk & tcl libs from dist
reingart Sep 14, 2022
492a68c
Fetch all git repo history for "versioneer"
reingart Sep 14, 2022
a11e2be
Bump github action upload artifact v3
reingart Sep 14, 2022
cba8328
Fix release tagging for main branch
reingart Sep 14, 2022
9ae3b5c
Merge pull request #97 from reingart/py2exe
reingart Sep 14, 2022
898791f
WSFEv1: Agrego metodo Consultar Actividades
RominaCastro Nov 8, 2022
936efd2
WSFEv1: Agrego método Agregar Actividad
RominaCastro Nov 8, 2022
8249dd1
RECE1: absolute imports
reingart Nov 9, 2022
1e21ba9
RECE1: fix unicode error (write file)
reingart Nov 9, 2022
7056998
RECE1: fix wrong debug condition
reingart Nov 9, 2022
7eaaf04
Merge branch 'main' of github.com:reingart/pyafipws into fix-rece1
reingart Nov 12, 2022
843a8a7
GHA: Split WSAA Power Shell tests
reingart Nov 19, 2022
ef8a2ff
GHA: Split WSFEv1 PowerShell tests
reingart Nov 19, 2022
237da3d
GHA: copy PowerShell tests in dist
reingart Nov 19, 2022
7d838bc
GHA: use different certificate for each platform
reingart Nov 19, 2022
8f40c00
GHA: print certificate for debugging
reingart Nov 19, 2022
b081636
GHA: output platform for debugging
reingart Nov 19, 2022
790e72e
GHA: fix platform condition and debug cert
reingart Nov 19, 2022
12e8c7a
WSAA: 5 minutes TTL for GHA E2E test
reingart Nov 19, 2022
a7d783b
WSAA: fix UTC timezone in date generation (utils)
reingart Nov 20, 2022
7412e00
GHA: use target platform (runner always is x64)
reingart Nov 20, 2022
2c447d6
GHA: only run cert/pk step if secrets are defined
reingart Nov 20, 2022
5c408d0
RECE1: powershell test (last invoice / json)
reingart Nov 20, 2022
2843691
GHA: fix compiled executables path for PS tests
reingart Nov 20, 2022
edda184
GHA: run powershell without profile (avoid chdir)
reingart Nov 20, 2022
e833905
RECE1: move test setup code
reingart Nov 20, 2022
d9c6d02
GHA: run powershell test script in local scope
reingart Nov 20, 2022
e11b8e7
GHA: run RECE1 at toplevel for output
reingart Nov 20, 2022
606b5f5
RECE1: use abspath so access ticket can be cached
reingart Nov 20, 2022
c0d8031
RECE1: group pester tests in context
reingart Nov 20, 2022
378a357
WSCPE: fix absolute imports (from py2)
reingart Nov 20, 2022
505eefb
WSAA: fix basic base64 UT
reingart Nov 20, 2022
a9fe135
WSAA: cert/key abs path for caching
reingart Nov 20, 2022
948e79b
RECEX1: skip test, review FEXGetLast_ID (TODO)
reingart Nov 21, 2022
c5df79b
RECE1: add ps test to authorize an invoice
reingart Nov 21, 2022
60abffa
RECE1: ps test invoice auth - text file (cobol)
reingart Nov 21, 2022
4c465b6
Merge pull request #100 from reingart/fix-rece1
reingart Nov 21, 2022
7193180
Update documentation (quick steps and old stuff)
reingart Nov 21, 2022
01fc745
Removed old examples
reingart Nov 21, 2022
569e60d
Document Python version, tests & Windows build
reingart Nov 21, 2022
0060d40
Build in Python 3.11 - ticket #99
reingart Nov 22, 2022
113a191
Upgrade dev dependencies for Python 3.11
reingart Nov 22, 2022
6555d41
Py3.11: pin pysimplesoap to solve import issue
reingart Nov 22, 2022
aee054a
Py3.11: fix UT (file open mode)
reingart Nov 22, 2022
60ce31b
WSFEXv1: agrego método GetParamActividades
RominaCastro Dec 1, 2022
431283b
wsfexv1: agrego método AgregarActividad
RominaCastro Dec 1, 2022
099c6eb
WSMTX: incremento version
RominaCastro Dec 11, 2022
cb2ab83
WSMTXCA: Agrego ConsultarActividadesVigentes
RominaCastro Dec 11, 2022
c248fb7
WSMTXCA: Agrego AgregarActividad RG5259 - RG5264/22
RominaCastro Dec 12, 2022
71b94a3
Merge pull request #101 from reingart/py311
reingart Feb 25, 2023
9ede3df
Bump future from 0.18.2 to 0.18.3
dependabot[bot] Feb 25, 2023
a061bc9
Merge branch 'develop' of https://github.com/RominaCastro/pyafipws in…
reingart Mar 18, 2023
ad1f895
RG5259: skip new method for recorded tests
reingart Mar 18, 2023
fc30638
RG5259: fix merge
reingart Mar 18, 2023
85a6cc2
Merge pull request #106 from reingart/ro
reingart Mar 18, 2023
037e06f
Merge pull request #104 from reingart/main
reingart Mar 19, 2023
ee797c3
Only run release on original repository, not forks
reingart Mar 19, 2023
0c6dda1
Merge pull request #107 from reingart/fix-integrations
reingart Mar 19, 2023
b4385c2
Merge pull request #104 from reingart/dependabot/pip/future-0.18.3
reingart Mar 20, 2023
e044fee
Properly fix dependabot read-only token
reingart Mar 20, 2023
ff61b8f
Merge branch 'main' of github.com:reingart/pyafipws into main
reingart Mar 20, 2023
d73f1af
Use built in cryptography pkcs7 signature.
salticus Apr 24, 2023
b82ff31
feat: get all dependencies from the requirements.txt file automatical…
HanslettTheDev Jun 21, 2023
e41b558
fix: added a missing comma in the setup function
HanslettTheDev Jun 21, 2023
e30ea10
fix: cleared a glitch that caused setup.py to fail
HanslettTheDev Jun 21, 2023
487e47a
fix: removed the version number
HanslettTheDev Jun 21, 2023
1977492
restart github actions
HanslettTheDev Jun 23, 2023
0b813e9
Cumulative updates f/ develop (python3 conversion)
reingart Jun 28, 2023
1fa819c
Update copyright and remove merge typo
reingart Jun 28, 2023
ac251ef
WSFEv1: update copyright
reingart Jun 28, 2023
5aeeb60
WSFEv1: re-sync updates
reingart Jun 28, 2023
7a9dd2d
WSFEXv1: disable get parameters until UT updated
reingart Jun 28, 2023
cf9d043
Remove Python 2.7 deprecated GitHub Action
reingart Jun 28, 2023
8adf788
Merge pull request #110 from reingart/main-dev-jun-2023
reingart Jun 29, 2023
7914d31
Only run release on original repository, not forks
reingart Mar 19, 2023
e552475
Properly fix dependabot read-only token
reingart Mar 20, 2023
a0cc03e
Bump future from 0.18.2 to 0.18.3
dependabot[bot] Feb 25, 2023
e8c184a
Cumulative updates f/ develop (python3 conversion)
reingart Jun 28, 2023
90d01f9
Update copyright and remove merge typo
reingart Jun 28, 2023
6a05161
WSFEv1: update copyright
reingart Jun 28, 2023
92f82f4
WSFEv1: re-sync updates
reingart Jun 28, 2023
b0025a0
WSFEXv1: disable get parameters until UT updated
reingart Jun 28, 2023
258e6eb
Remove Python 2.7 deprecated GitHub Action
reingart Jun 28, 2023
95da0a7
Merge pull request #121 from PyAr/main-dev-jun-2023
reingart Jun 29, 2023
fd3a074
feat: added the signing of certificates and refactored the code
HanslettTheDev Jul 3, 2023
79b81f2
bump: upgraded cryptography from 3.3.2 -> 41.0.1
HanslettTheDev Jul 3, 2023
cbaadfb
Fix bad signature w/ latest cryptography version
reingart Jul 5, 2023
a322666
Merge pull request #113 from salticus/dependabot/pip/cryptography-39.0.1
reingart Jul 5, 2023
7f6fa93
Merge branch 'main' into update-signature
reingart Jul 5, 2023
6c15ce2
Fix whitespace issues due merge
reingart Jul 5, 2023
407465b
Merge pull request #124 from HanslettTheDev/update-signature
reingart Jul 5, 2023
cd73644
feat: splitted the sign_tra function into 3 seperate functions and ca…
HanslettTheDev Jul 10, 2023
aef9ceb
feat: Added the sign_tra_openssl function
HanslettTheDev Jul 10, 2023
ea2d44a
fix: added the return statements
HanslettTheDev Jul 11, 2023
31ff146
refactored the code and used flake8 for linting
HanslettTheDev Jul 15, 2023
ece787e
feat: use of a make command to carry out manual testing
HanslettTheDev Jul 15, 2023
928e6cd
feat: unit test case for the openssl signing
HanslettTheDev Jul 28, 2023
2fad675
fix: modified make file command names for clarity
HanslettTheDev Jul 28, 2023
f08b976
fix: changed to a split function to prevent future bug error if crypt…
HanslettTheDev Aug 9, 2023
8b2ae8d
feat: removed the pytest code to resolve the conversation from the admin
HanslettTheDev Aug 12, 2023
a563490
fix: added the = operator for safer cryptography comparisons
HanslettTheDev Aug 12, 2023
5d75ffe
feat: conditional in requirements.txt file to set max pillow version …
HanslettTheDev Aug 13, 2023
a194f1b
Fix pillow version for 64 bits
reingart Aug 13, 2023
170d23e
Fix pillow version for 64 bits
reingart Aug 13, 2023
29c7316
Merge pull request #130 from HanslettTheDev/fix-32bit-workflow
reingart Aug 13, 2023
b69f790
IIBB: fix old Python2 code
abernardi Aug 18, 2023
fb767f5
fixed requested changes
HanslettTheDev Aug 22, 2023
677a40c
Merge pull request #126 from HanslettTheDev/new-makefile-commands
reingart Aug 23, 2023
2eb835e
IIBB: fix old Python2 code (2)
abernardi Aug 23, 2023
9c32565
Merge pull request #125 from HanslettTheDev/new-sign-tra
reingart Aug 25, 2023
f35ebd3
removed the get_dep.py file
HanslettTheDev Aug 26, 2023
a2469dc
IIBB: Fix hash md5 unicode encoding error
reingart Aug 27, 2023
d2c2128
IIBB: fix temp file unicode error (binary open)
reingart Aug 27, 2023
4285aff
IIBB: fix error message unicode encoding
reingart Aug 27, 2023
b9c308e
Merge pull request #132 from abernardi/main
reingart Aug 27, 2023
d9f4e30
feat: installation of nsis and building of installer
HanslettTheDev Aug 13, 2023
779edf7
feat: deploy the installer as a release artifact
HanslettTheDev Aug 13, 2023
729a083
feat: download proper version of VC redist
reingart Aug 27, 2023
06f9261
feat: removed vcredist suffix for 32/64 bits
reingart Aug 27, 2023
2efa96d
Merge pull request #131 from HanslettTheDev/create-release-py2exe
reingart Aug 27, 2023
2c83c71
fix download of vcredist (before nsis installer)
reingart Aug 27, 2023
e947153
feat: added functionality to the GH actions to deploy pyafipws insta…
HanslettTheDev Aug 28, 2023
c3dc7fe
Merge pull request #136 from HanslettTheDev/create-release
reingart Aug 29, 2023
3fa8d39
feat: added pip-tools usage and using requirements.in file instead
HanslettTheDev Sep 6, 2023
7cd7095
fix: removed the requirements.txt file to prevent merge conflicts
HanslettTheDev Sep 6, 2023
f4cca9d
fix: fixed requirements.txt file to prevent merge conflicts
HanslettTheDev Sep 6, 2023
cebe787
fix: fixed requirements.txt file to prevent merge conflicts
HanslettTheDev Sep 6, 2023
29fd504
fix: fixed requirements.txt file to prevent merge conflicts
HanslettTheDev Sep 6, 2023
7e86bb2
feat: removed requirements.in file and modified the setup.py file wit…
HanslettTheDev Sep 8, 2023
eac799a
feat: adding unit tests for wsfev1 based on issue #107
HanslettTheDev Sep 11, 2023
c555356
fix: removed development dependencies and moved optional dependencies…
HanslettTheDev Sep 13, 2023
73ccd3f
feat: github action deploy yml file
HanslettTheDev Sep 20, 2023
0c04777
feat: added a step to check the installation
HanslettTheDev Sep 20, 2023
3f16db8
ressolved the conversation made by reingart here https://github.com/P…
HanslettTheDev Sep 28, 2023
a0d23aa
Merge pull request #140 from HanslettTheDev/deploy-to-pypi
reingart Oct 1, 2023
0a84b1a
fix: removed the environment markers for pysimplesoap
HanslettTheDev Oct 1, 2023
ced5914
feat: added a comprehensive test for the module
HanslettTheDev Oct 3, 2023
e831103
feat: readme now used as the long description text
HanslettTheDev Oct 5, 2023
76018d5
PyQR: colores de relleno y fondo configurables
cperezabo Oct 5, 2023
938c672
fix: moved pysimplesoap to the dependency_links option
HanslettTheDev Oct 6, 2023
7af5564
Merge pull request #119 from HanslettTheDev/fix_deps
reingart Oct 6, 2023
90b2dc3
ref: deferred back to default open() function
HanslettTheDev Oct 6, 2023
844440d
Merge pull request #143 from HanslettTheDev/readme-docs
reingart Oct 6, 2023
4fbff84
Merge pull request #141 from HanslettTheDev/deploy-to-pypi
reingart Oct 6, 2023
a798305
Merge pull request #112 from cperezabo/main
reingart Oct 22, 2023
182a776
ref: refactored the function name, removed pytest.fixture
HanslettTheDev Oct 28, 2023
4c692f0
feat: removed dependency link option
HanslettTheDev Oct 28, 2023
3c820d5
fix: added the comma to fix install package dependency
HanslettTheDev Oct 28, 2023
80a6da0
bump: pysimplesoap -> 1.8.22
HanslettTheDev Oct 28, 2023
697dfd0
Merge pull request #144 from HanslettTheDev/new-pysimplesoap
reingart Nov 5, 2023
348aaf8
Merge pull request #138 from HanslettTheDev/fix-issue107
reingart Nov 5, 2023
aa98314
Merge branch 'main' of github.com:pyar/pyafipws into main
reingart Jan 7, 2024
7dbe7b3
fix: el parche relacionado al error de DH_KEY_TOO_SMALL debe aplicars…
cperezabo Mar 5, 2024
31f46db
Merge pull request #114 from cperezabo/main
reingart Apr 16, 2024
c27bcd2
feat(windows-installer): update build process and add PyI25 COM serve…
ABHISHEKSONI121 Aug 5, 2024
e15d886
add PyQR COM server integration and testing
ABHISHEKSONI121 Aug 5, 2024
20e0331
feat(tests): add PowerShell tests for factura_electronica.vbs and re…
ABHISHEKSONI121 Aug 7, 2024
6c895b2
build(deps): bump actions/download-artifact in /.github/workflows
dependabot[bot] Sep 3, 2024
f11ed80
RECEX1: registro A: actividades RG5259/22 RG5264/22 FEv3
reingart Jul 3, 2023
ef4099e
WSRemHarina: agrego ejemplo Visual Basic Script
reingart Sep 24, 2023
72cb6b6
WSCPE: verion AFIP 2.0.3
reingart Nov 28, 2023
b1393af
WSCPE: ajuste editar cpe
reingart Dec 4, 2023
24ea30f
PyFEPDF: IVA Ley 27743
reingart Dec 20, 2024
7ad1a04
PyFEPDF: ajustes iva consumidor final
reingart Jan 20, 2025
bcf0648
PyFEPDF: exento para discriminar iva
reingart Feb 6, 2025
e75796f
WSFEv1: Version 4 Nuevos campos FECAEADetRequest
reingart Feb 9, 2025
1e20709
RECE1: actividades
reingart Feb 9, 2025
29eddde
RECE1: Version 4 nuevos campos
reingart Feb 9, 2025
e87fbc0
WSFEv1: Version 4 FEParamGetCondicionIvaReceptor
reingart Feb 9, 2025
3ba4893
WSFEv1: categoria de iva opcional
reingart Feb 10, 2025
f251618
WSFEv1: agrego fecha al consultar cotizacion
reingart Feb 10, 2025
49f83e3
Merge pull request #118 from reingart/dependabot/github_actions/dot-g…
reingart Mar 2, 2025
78adeca
Merge branch 'main' into 2025
reingart Mar 2, 2025
e095b26
Update setup_win.py hardcoded version
reingart Mar 2, 2025
d56ffa3
TODO fix pyqr.py path
reingart Mar 2, 2025
31e39e6
Merge pull request #168 from ABHISHEKSONI121/powershell
reingart Mar 2, 2025
2d5c56b
Merge pull request #123 from PyAr/main
reingart Mar 2, 2025
6a3147e
Bump actions/upload-artifact@v4 (#122)
reingart Mar 2, 2025
859e4d5
Merge branch 'main' into 2025
reingart Mar 2, 2025
2ddc670
PyFEPDF: fix indent merge conflict
reingart Mar 2, 2025
da11839
PyQR: fix win installer deps
reingart Mar 2, 2025
2d286a9
PyQR: fix return vallue
reingart Mar 2, 2025
b4976e1
Merge branch 'main' into 2025
reingart Mar 2, 2025
718f3cd
WSFEv1: disable parameters UT
reingart Mar 2, 2025
55bf354
Merge pull request #120 from reingart/2025
reingart Mar 8, 2025
1089ac4
Update Python 3
ivannrnt Apr 29, 2025
f43019c
Ajusto factura.txt RG5616
ivannrnt May 21, 2025
600cb92
Ajusto factura de prueba para unit test
ivannrnt May 21, 2025
2d37dd9
WSBFE: Resuelvo error en CrearFactura()
ivannrnt May 21, 2025
dffcea9
WSMTX: Agrego campos faltantes RG5616
ivannrnt May 21, 2025
bd3c7cd
WSFEV1: Elimino métodos duplicados
ivannrnt May 21, 2025
9d5887c
WSFEX: Elimino métodos duplicados
ivannrnt May 21, 2025
525085b
WS_SR_PADRON: Agrego Método ObtenerCampoImpuesto
ivannrnt Jul 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 28 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[run]

omit =
*cot*
*iibb*
*nsis*
*/padron.py
*recet*
*formatos*
*rg3685*
*setup_win*
*sired*
*setup*
*trazafito*
*trazamed*
*trazaprodmed*
*trazarenpre*
*trazavet*
*utils*
*wdigdepfiel*
*ws_sire*
*wscoc*
*wsctg*
*wsfecred*
*wslpg*
*wslpg_datos*
*wsremazucar*
*wsremharina*
363 changes: 363 additions & 0 deletions .github/openssl.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,363 @@
#
# OpenSSL example configuration file.
# This is mostly being used for generation of certificate requests.
#

# override default security level (see at the end of the file)
openssl_conf = default_conf

# Note that you can include other files from the main configuration
# file using the .include directive.
#.include filename

# This definition stops the following lines choking if HOME isn't
# defined.
HOME = .

# Extra OBJECT IDENTIFIER info:
#oid_file = $ENV::HOME/.oid
oid_section = new_oids

# To use this configuration file with the "-extfile" option of the
# "openssl x509" utility, name here the section containing the
# X.509v3 extensions to use:
# extensions =
# (Alternatively, use a configuration file that has only
# X.509v3 extensions in its main [= default] section.)

[ new_oids ]

# We can add new OIDs in here for use by 'ca', 'req' and 'ts'.
# Add a simple OID like this:
# testoid1=1.2.3.4
# Or use config file substitution like this:
# testoid2=${testoid1}.5.6

# Policies used by the TSA examples.
tsa_policy1 = 1.2.3.4.1
tsa_policy2 = 1.2.3.4.5.6
tsa_policy3 = 1.2.3.4.5.7

####################################################################
[ ca ]
default_ca = CA_default # The default ca section

####################################################################
[ CA_default ]

dir = ./demoCA # Where everything is kept
certs = $dir/certs # Where the issued certs are kept
crl_dir = $dir/crl # Where the issued crl are kept
database = $dir/index.txt # database index file.
#unique_subject = no # Set to 'no' to allow creation of
# several certs with same subject.
new_certs_dir = $dir/newcerts # default place for new certs.

certificate = $dir/cacert.pem # The CA certificate
serial = $dir/serial # The current serial number
crlnumber = $dir/crlnumber # the current crl number
# must be commented out to leave a V1 CRL
crl = $dir/crl.pem # The current CRL
private_key = $dir/private/cakey.pem# The private key

x509_extensions = usr_cert # The extensions to add to the cert

# Comment out the following two lines for the "traditional"
# (and highly broken) format.
name_opt = ca_default # Subject Name options
cert_opt = ca_default # Certificate field options

# Extension copying option: use with caution.
# copy_extensions = copy

# Extensions to add to a CRL. Note: Netscape communicator chokes on V2 CRLs
# so this is commented out by default to leave a V1 CRL.
# crlnumber must also be commented out to leave a V1 CRL.
# crl_extensions = crl_ext

default_days = 365 # how long to certify for
default_crl_days= 30 # how long before next CRL
default_md = default # use public key default MD
preserve = no # keep passed DN ordering

# A few difference way of specifying how similar the request should look
# For type CA, the listed attributes must be the same, and the optional
# and supplied fields are just that :-)
policy = policy_match

# For the CA policy
[ policy_match ]
countryName = match
stateOrProvinceName = match
organizationName = match
organizationalUnitName = optional
commonName = supplied
emailAddress = optional

# For the 'anything' policy
# At this point in time, you must list all acceptable 'object'
# types.
[ policy_anything ]
countryName = optional
stateOrProvinceName = optional
localityName = optional
organizationName = optional
organizationalUnitName = optional
commonName = supplied
emailAddress = optional

####################################################################
[ req ]
default_bits = 2048
default_keyfile = privkey.pem
distinguished_name = req_distinguished_name
attributes = req_attributes
x509_extensions = v3_ca # The extensions to add to the self signed cert

# Passwords for private keys if not present they will be prompted for
# input_password = secret
# output_password = secret

# This sets a mask for permitted string types. There are several options.
# default: PrintableString, T61String, BMPString.
# pkix : PrintableString, BMPString (PKIX recommendation before 2004)
# utf8only: only UTF8Strings (PKIX recommendation after 2004).
# nombstr : PrintableString, T61String (no BMPStrings or UTF8Strings).
# MASK:XXXX a literal mask value.
# WARNING: ancient versions of Netscape crash on BMPStrings or UTF8Strings.
string_mask = utf8only

# req_extensions = v3_req # The extensions to add to a certificate request

[ req_distinguished_name ]
countryName = Country Name (2 letter code)
countryName_default = AU
countryName_min = 2
countryName_max = 2

stateOrProvinceName = State or Province Name (full name)
stateOrProvinceName_default = Some-State

localityName = Locality Name (eg, city)

0.organizationName = Organization Name (eg, company)
0.organizationName_default = Internet Widgits Pty Ltd

# we can do this but it is not needed normally :-)
#1.organizationName = Second Organization Name (eg, company)
#1.organizationName_default = World Wide Web Pty Ltd

organizationalUnitName = Organizational Unit Name (eg, section)
#organizationalUnitName_default =

commonName = Common Name (e.g. server FQDN or YOUR name)
commonName_max = 64

emailAddress = Email Address
emailAddress_max = 64

# SET-ex3 = SET extension number 3

[ req_attributes ]
challengePassword = A challenge password
challengePassword_min = 4
challengePassword_max = 20

unstructuredName = An optional company name

[ usr_cert ]

# These extensions are added when 'ca' signs a request.

# This goes against PKIX guidelines but some CAs do it and some software
# requires this to avoid interpreting an end user certificate as a CA.

basicConstraints=CA:FALSE

# Here are some examples of the usage of nsCertType. If it is omitted
# the certificate can be used for anything *except* object signing.

# This is OK for an SSL server.
# nsCertType = server

# For an object signing certificate this would be used.
# nsCertType = objsign

# For normal client use this is typical
# nsCertType = client, email

# and for everything including object signing:
# nsCertType = client, email, objsign

# This is typical in keyUsage for a client certificate.
# keyUsage = nonRepudiation, digitalSignature, keyEncipherment

# This will be displayed in Netscape's comment listbox.
nsComment = "OpenSSL Generated Certificate"

# PKIX recommendations harmless if included in all certificates.
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid,issuer

# This stuff is for subjectAltName and issuerAltname.
# Import the email address.
# subjectAltName=email:copy
# An alternative to produce certificates that aren't
# deprecated according to PKIX.
# subjectAltName=email:move

# Copy subject details
# issuerAltName=issuer:copy

#nsCaRevocationUrl = http://www.domain.dom/ca-crl.pem
#nsBaseUrl
#nsRevocationUrl
#nsRenewalUrl
#nsCaPolicyUrl
#nsSslServerName

# This is required for TSA certificates.
# extendedKeyUsage = critical,timeStamping

[ v3_req ]

# Extensions to add to a certificate request

basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment

[ v3_ca ]


# Extensions for a typical CA


# PKIX recommendation.

subjectKeyIdentifier=hash

authorityKeyIdentifier=keyid:always,issuer

basicConstraints = critical,CA:true

# Key usage: this is typical for a CA certificate. However since it will
# prevent it being used as an test self-signed certificate it is best
# left out by default.
# keyUsage = cRLSign, keyCertSign

# Some might want this also
# nsCertType = sslCA, emailCA

# Include email address in subject alt name: another PKIX recommendation
# subjectAltName=email:copy
# Copy issuer details
# issuerAltName=issuer:copy

# DER hex encoding of an extension: beware experts only!
# obj=DER:02:03
# Where 'obj' is a standard or added object
# You can even override a supported extension:
# basicConstraints= critical, DER:30:03:01:01:FF

[ crl_ext ]

# CRL extensions.
# Only issuerAltName and authorityKeyIdentifier make any sense in a CRL.

# issuerAltName=issuer:copy
authorityKeyIdentifier=keyid:always

[ proxy_cert_ext ]
# These extensions should be added when creating a proxy certificate

# This goes against PKIX guidelines but some CAs do it and some software
# requires this to avoid interpreting an end user certificate as a CA.

basicConstraints=CA:FALSE

# Here are some examples of the usage of nsCertType. If it is omitted
# the certificate can be used for anything *except* object signing.

# This is OK for an SSL server.
# nsCertType = server

# For an object signing certificate this would be used.
# nsCertType = objsign

# For normal client use this is typical
# nsCertType = client, email

# and for everything including object signing:
# nsCertType = client, email, objsign

# This is typical in keyUsage for a client certificate.
# keyUsage = nonRepudiation, digitalSignature, keyEncipherment

# This will be displayed in Netscape's comment listbox.
nsComment = "OpenSSL Generated Certificate"

# PKIX recommendations harmless if included in all certificates.
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid,issuer

# This stuff is for subjectAltName and issuerAltname.
# Import the email address.
# subjectAltName=email:copy
# An alternative to produce certificates that aren't
# deprecated according to PKIX.
# subjectAltName=email:move

# Copy subject details
# issuerAltName=issuer:copy

#nsCaRevocationUrl = http://www.domain.dom/ca-crl.pem
#nsBaseUrl
#nsRevocationUrl
#nsRenewalUrl
#nsCaPolicyUrl
#nsSslServerName

# This really needs to be in place for it to be a proxy certificate.
proxyCertInfo=critical,language:id-ppl-anyLanguage,pathlen:3,policy:foo

####################################################################
[ tsa ]

default_tsa = tsa_config1 # the default TSA section

[ tsa_config1 ]

# These are used by the TSA reply generation only.
dir = ./demoCA # TSA root directory
serial = $dir/tsaserial # The current serial number (mandatory)
crypto_device = builtin # OpenSSL engine to use for signing
signer_cert = $dir/tsacert.pem # The TSA signing certificate
# (optional)
certs = $dir/cacert.pem # Certificate chain to include in reply
# (optional)
signer_key = $dir/private/tsakey.pem # The TSA private key (optional)
signer_digest = sha256 # Signing digest to use. (Optional)
default_policy = tsa_policy1 # Policy if request did not specify it
# (optional)
other_policies = tsa_policy2, tsa_policy3 # acceptable policies (optional)
digests = sha1, sha256, sha384, sha512 # Acceptable message digests (mandatory)
accuracy = secs:1, millisecs:500, microsecs:100 # (optional)
clock_precision_digits = 0 # number of digits after dot. (optional)
ordering = yes # Is ordering defined for timestamps?
# (optional, default: no)
tsa_name = yes # Must the TSA name be included in the reply?
# (optional, default: no)
ess_cert_id_chain = no # Must the ESS cert id chain be included?
# (optional, default: no)
ess_cert_id_alg = sha1 # algorithm to compute certificate
# identifier (optional, default: sha1)

[default_conf]
ssl_conf = ssl_sect

[ssl_sect]
system_default = system_default_sect

[system_default_sect]
# downgrade for ssl.SSLError: [SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1131)
CipherString = DEFAULT:@SECLEVEL=1
Loading