mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 16:12:09 +02:00
we are going to need to use OpenSSL for a lot of stuff
This commit is contained in:
@@ -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 ""
|
||||||
Reference in New Issue
Block a user