Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
pyx509: X.509 Certificate and PKCS7 Parser / Verifier for Python
################################################################

This is a fork of the original project:
This is a fork of a fork of a fork of the original project:

pyx509 - Python library for parsing X.509
py3x509 - Python library for parsing X.509
Copyright (C) 2009-2012 CZ.NIC, z.s.p.o. (http://www.nic.cz)


* Forked from https://github.com/ph4r05/px509
* Forked from https://github.com/erny/pyx509
* Forked from https://github.com/hiviah/pyx509

Updates by me rename the module to 'x509' and update to Python3 only.

Copyright (C) 2017 <siege@siege.org> (https://github.com/cniemira/py3x509)

Work in progress!

Description
Expand Down Expand Up @@ -45,7 +54,7 @@ Installation

Install with pip::

pip install pyx509_ph4
pip install py3x509


License
Expand Down
24 changes: 16 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
from setuptools import find_packages

setup(
name='pyx509_ph4',
version='0.1.8',
name='x509',
version='0.1',
packages=find_packages(),
url='https://github.com/ph4r05/pyx509',
maintainer='ph4r05',
maintainer_email='ph4r05@gmail.com',
url='https://github.com/cniemira/py3x509',
maintainer='cniemira',
maintainer_email='siege@siege.org',
license=open('LICENSE.txt').read(),
description='Parse x509v3 certificates and PKCS7 signatures',
long_description=open('README.rst').read(),
Expand All @@ -16,10 +16,18 @@
],
entry_points={
'console_scripts': [
'x509_parse.py = pyx509.commands:print_certificate_info_cmd',
'pkcs7_parse.py = pyx509.commands:print_signature_info_cmd',
'x509_parse.py = x509.commands:print_certificate_info_cmd',
'pkcs7_parse.py = x509.commands:print_signature_info_cmd',
]
},
test_suite='pyx509.test',
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Security :: Cryptography",
"Topic :: Software Development :: Libraries",
],
test_suite='x509.test',
zip_safe=False,
)
File renamed without changes.
10 changes: 5 additions & 5 deletions pyx509/commands.py → x509/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#*

import sys
from models import PKCS7
from models import X509Certificate
from x509.models import PKCS7
from x509.models import X509Certificate


def print_certificate_info(derData):
Expand Down Expand Up @@ -62,9 +62,9 @@ def print_timestamp_info(derData):
"""
pkcs7 = PKCS7.from_der(derData)
signedDate, valid_from, valid_to, signer = pkcs7.get_timestamp_info()
print "Signature date: %s" % signedDate
print "Signers certicate valid from: %s, to: %s" % (valid_from, valid_to)
print "Signers certicate sbject: %s" % signer
print("Signature date: %s" % signedDate)
print("Signers certicate valid from: %s, to: %s" % (valid_from, valid_to))
print("Signers certicate sbject: %s" % signer)


def print_timestamp_info_cmd():
Expand Down
File renamed without changes.
Loading