summaryrefslogtreecommitdiffstats
path: root/base/server/src/engine/pkihelper.py
Commit message (Collapse)AuthorAgeFilesLines
* Reorganized deployment tools.Endi S. Dewata2013-07-221-3516/+0
| | | | | | | The pkispawn and pkidestroy scripts have been moved into sbin folder. The Python deployment library and the scriptlets were moved into pki.server.deployment and pki.server.deployment.scriptlets packages, respectively.
* Fixes for issues reported by pylint.Abhishek Koneru2013-07-181-4/+4
| | | | | | Fixed the warning W0202 - attributes defined outside init and error E0202 - An instance attribute hiding a method (which is actually an error in json.encoder.JSONEncoder line 157.)
* Fix issues reported by pylint.Abhishek Koneru2013-07-101-5/+5
| | | | | | | Fixed all warnings caused due to absolute import of modules in same package and not marking the regexes with an r when trying to match. Ticket #316
* Fixes for issues reported by pylint.Abhishek Koneru2013-07-021-34/+32
| | | | | Fixes for issues in other files. Ticket #316
* Fixes for issues reported by pylint.Abhishek Koneru2013-07-021-61/+55
| | | | | Fixes for issues in pkihelper.py. Ticket #316
* Applied PEP8 formatting to python files.Abhishek Koneru2013-06-271-399/+399
| | | | | | | General formatting done for all the python files except for the line length issue, which could not be formatted using Pydev in Eclipse. Ticket #316
* Code refactored for global variables and utility classes.Abhishek Koneru2013-06-271-512/+578
| | | | | | | | | | Added a new class PKIDeployer, whose object holds references to global dictionaries for master and slots and also objects of utility classes in pkihelper.py. This object once created in pkispawn/pkidestroy will be passed on to the PKIScriptlets and used. This also fixes few pylint related errors (E1120) Ticket #316
* Modify pkispawn to handle case where no subsystemCerts are generatedAde Lee2013-06-261-1/+8
| | | | | | When installing clone of a KRA into an existing instance, no new system certs are generated, and so the systemCerts parameter is not populated. This patch addresses this issue.
* Added Tomcat-based TPS instance.Endi S. Dewata2013-06-101-3/+3
| | | | | | | | | The build and deployment tools have been modified to support creating a basic Tomcat instance to run TPS. New configuration and template files for TPS have been copied from another Tomcat subsystem. The TPS functionality itself will be added in future patches. Ticket #526
* Use 'with' construct for file operations.Abhishek Koneru2013-06-061-16/+14
| | | | | | | | Replace try-except with with construct in python code in applicable places where there is no exception handling required. Also added finally block to close resources opened in a try except block. Ticket #560
* Do not use sys.exit() after an error.Abhishek Koneru2013-05-211-619/+663
| | | | | | | Raise an exception on error so that it can be handled by the caller. Ticket #562
* Fix some errors in patch.Ade Lee2013-04-281-4/+3
| | | | | | Update kraconnector-delete call to use -c for database password. Update get-install-token call to specify instance certdb. Removed --ignore-untrusted directives on both. Update man page.
* Ignoring warnings/errors during installation.Endi Sukma Dewata2013-04-281-0/+2
| | | | | | | | The code used by pkispawn and pkidestroy has been modified to ignore certificate validity warnings/errors that happens during installation. The instanceCreationMode is now redundant and has been removed from ClientConfig.
* Set log level in logfile to debug in pkispawnAde Lee2013-04-261-1/+0
| | | | | | | | The log file is not very useful without the level of logging. If you have occasion to go to the log file, then you want to see all the gory details, This of course is valid for pkidestroy too. Also removed an unneeded import introduced by mistake.
* Show error messages and stack trace when an error occurs.Abhishek Koneru2013-04-261-60/+69
| | | | | | | Print the stacktrace to the log file if there is an error while executing pkispawn. Ticket #592
* Defect: Installation fails if there is only one system cert.Abhishek Koneru2013-04-231-0/+3
| | | | | | | | | After configuration is done, the JSON result can have only one system cert (in case of clone installation). But the code expects a list of certs rather than a single cert. So when there is only one certificate it is added to a list and processed. Ticket #593
* Renamed base/deploy to base/server.Endi Sukma Dewata2013-04-091-0/+3397
The base/deploy folder has been renamed to base/server to match the package name. The pki.conf has been moved into pki-base package. Ticket #553, #564