mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 08:12:15 -04:00
we are going to need to use OpenSSL for a lot of stuff
This commit is contained in:
parent
64786a0563
commit
966e3a591f
1 changed files with 31 additions and 0 deletions
31
webserver/CSR.py
Normal file
31
webserver/CSR.py
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# use OpenSSL to provide CSR-related operations
|
||||
|
||||
def parse(csr):
|
||||
"""Is this CSR syntactically valid?"""
|
||||
return True
|
||||
|
||||
def goodkey(csr):
|
||||
"""Does this CSR's public key comply with our CA policy?"""
|
||||
return True
|
||||
|
||||
def pubkey(csr):
|
||||
"""Get the public key from this CSR."""
|
||||
return ""
|
||||
|
||||
def cn(csr):
|
||||
"""Get the common name from this CSR."""
|
||||
return ""
|
||||
|
||||
def san(csr):
|
||||
"""Get the subject alternate names from this CSR."""
|
||||
return []
|
||||
|
||||
def verify(key, data):
|
||||
"""What string was validly signed by this public key? (or None)"""
|
||||
return None
|
||||
|
||||
def sign(key, data):
|
||||
"""Sign this data with this private key. For client-side use."""
|
||||
return ""
|
||||
Loading…
Reference in a new issue