Commit 03c3f4d7 authored by Alexander Korolkov's avatar Alexander Korolkov

Remove uacrypto.x509_to_der()

It is not used and is equivalent to uacrypto.der_from_x509()
parent 1aa70ae9
......@@ -27,12 +27,6 @@ def x509_from_der(data):
return x509.load_der_x509_certificate(data, default_backend())
def x509_to_der(cert):
if not cert:
return b''
return cert.public_bytes(serialization.Encoding.DER)
def load_private_key(path):
_, ext = os.path.splitext(path)
with open(path, "rb") as f:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment