URL: https://github.com/freeipa/freeipa/pull/6130 Author: ssidhaye Title: #6130: [WIP] Added test automation for SHA384withRSA CSR support Action: opened
PR body: """ Setup master with --ca-signing-algorithm=SHA384withRSA Run certutil and check Signing Algorithm Pagure Link: https://pagure.io/freeipa/issue/8906 Signed-off-by: Sumedh Sidhaye <ssidh...@redhat.com> """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/6130/head:pr6130 git checkout pr6130
From ca7091c4fa4e2db920f60bc2d09895086e84f7b2 Mon Sep 17 00:00:00 2001 From: Sumedh Sidhaye <ssidh...@redhat.com> Date: Wed, 5 Jan 2022 14:58:13 +0530 Subject: [PATCH] Added test automation for SHA384withRSA CSR support Setup master with --ca-signing-algorithm=SHA384withRSA Run certutil and check Signing Algorithm Pagure Link: https://pagure.io/freeipa/issue/8906 Signed-off-by: Sumedh Sidhaye <ssidh...@redhat.com> --- .../test_integration/test_installation.py | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/ipatests/test_integration/test_installation.py b/ipatests/test_integration/test_installation.py index 0947241ae27..a15cd4c3c03 100644 --- a/ipatests/test_integration/test_installation.py +++ b/ipatests/test_integration/test_installation.py @@ -1916,3 +1916,26 @@ def test_replica0_install(self): tasks.install_replica( self.master, self.replicas[0], setup_ca=False, setup_dns=False ) + + +class TestInstallwithSHA384withRSA(IntegrationTest): + num_replicas = 0 + + @classmethod + def install(cls, mh): + pass + + def test_install_master_withalgo_sha384withrsa(self): + self.masd + tasks.install_master( + self.master, + extra_args=['--ca-signing-algorithm=SHA384withRSA'], + ) + + # check Signing Algorithm post installation + dashed_domain = self.master.domain.realm.replace(".", '-') + cmd_args = ['certutil', '-L', '-d', '/etc/dirsrv/{}/'.format(dashed_domain), + '-n', 'Server-Cert'] + result = self.master.run_command(cmd_args) + check_string = 'Signature Algorithm: PKCS #1 SHA-384 With RSA Encryption' + assert check_string in result.stdout_text
_______________________________________________ FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/freeipa-devel@lists.fedorahosted.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure