Browse Source

draft for certificate object management

master
Edoardo Putti 8 years ago
parent
commit
1113585e72
2 changed files with 23 additions and 0 deletions
  1. +22
    -0
      certificate.py
  2. +1
    -0
      lookup.py

+ 22
- 0
certificate.py View File

@ -0,0 +1,22 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import json
from paths import *
__doc__= """
Module of classes to handle certificate requests
"""
class Certificate(object):
def __init__(self, cert_id):
self.cert_id = cert_id
def __repr__(self):
return ( "%s %s" % ( str(self.__class__.__name__), str(self.cert_id) ) )
@property
def path(self):
return os.path.join(OUTPUT_PATH, self.cert_id + '-cert.pub')

+ 1
- 0
lookup.py View File

@ -11,6 +11,7 @@ import sqlite3
import tempfile
from authority import *
from certificate import *
from request import *
from paths import *


Loading…
Cancel
Save