mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 06:42:10 -04:00
Add csr test
This commit is contained in:
parent
a48afd498c
commit
953d4957b8
1 changed files with 12 additions and 0 deletions
|
|
@ -180,6 +180,18 @@ class ImportCSRFileTest(unittest.TestCase):
|
|||
["example.com"],),
|
||||
self._call(csrfile, data))
|
||||
|
||||
def test_pem_csr(self):
|
||||
csrfile = test_util.vector_path('csr.pem')
|
||||
data = test_util.load_vector('csr.pem')
|
||||
|
||||
self.assertEqual(
|
||||
(OpenSSL.crypto.FILETYPE_PEM,
|
||||
le_util.CSR(file=csrfile,
|
||||
data=data,
|
||||
form="pem"),
|
||||
["example.com"],),
|
||||
self._call(csrfile, data))
|
||||
|
||||
|
||||
class MakeKeyTest(unittest.TestCase): # pylint: disable=too-few-public-methods
|
||||
"""Tests for certbot.crypto_util.make_key."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue