Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
The following known issue description has been removed from the RHEL 7.1 Beta Release Notes:
Microsoft Certificate Services do not always keep the Subject Name binary encoding as defined in the Certificate Request.
When IPA CA certificate signed by an external CA is being renewed using the ipa-cacert-manage command, the subject name of the certificate issued by the Microsoft Certificate Services does not always match the subject name of the originating certificate signing the request on binary level.
To work around this problem, when renewing the IPA CA certificate signed by an external CA using ipa-cacert-manage, make sure the subject name of the certificate issued by the external CA matches the subject name of the originating certificate signing request on binary level.
This is especially important for Microsoft Certificate Services, which by default uses the PrintableString encoding in subject names of certificates it issues, despite the encoding used in subject name of certificate signing requests. However, uses the UTF8String encoding by default. See http://support.microsoft.com/kb/888180 for instructions on how to configure MS CS to use UTF8String encoding in subject names.
Description of problem:
I'm trying to renew a CA Cert and change from self signed to external CA signed using MS ADCS.
[root@rhel7-2 ~]# ipa-cacert-manage renew --external-ca
Exporting CA certificate signing request, please wait
The next step is to get /var/lib/ipa/ca.csr signed by your CA and re-run ipa-cacert-manage as:
ipa-cacert-manage renew --external-cert-file=/path/to/signed_certificate --external-cert-file=/path/to/external_ca_certificate
The ipa-cacert-manage command was successful
[root@rhel7-2 ~]# cd /root/certs
[root@rhel7-2 certs]# ls
adcs2_chain.p7b ca.cer
[root@rhel7-2 certs]# openssl pkcs7 -print_certs -in /root/certs/adcs2_chain.p7b -inform DER -out /root/certs/adcs2_chain.pem
[root@rhel7-2 certs]# ipa-cacert-manage renew --external-cert-file=/root/certs/adcs2_chain.pem --external-cert-file=/root/certs/ca.cer -p Secret123
Importing the renewed CA certificate, please wait
Not compatible with the current CA certificate: %s
Command ''/usr/bin/certutil' '-d' '/tmp/tmpAYIjfk' '-A' '-n' 'IPA CA' '-t' 'C,,'' returned non-zero exit status 255
Version-Release number of selected component (if applicable):
ipa-server-4.1.0-10.el7.x86_64
certmonger-0.75.14-2.el7.x86_64
nss-tools-3.16.2.3-2.el7.x86_64
How reproducible:
unknown
Steps to Reproduce:
1. Install IPA server
2. ipa-cacert-manage renew --external-ca
3. copy CSR to windows ADCS server
4. sign cert
5. copy cert and ADCS CA cert chain to IPA server
6. convert ADCS CA cert chain from p7b to DER pem
openssl pkcs7 -print_certs -in <p7b_file> -inform DER -out <pem_file>
7. ipa-cacert-manage renew --external-cert-file=<pem_file> --external-cert-file=<cacert> -p <password>
Actual results:
fails like above
Expected results:
no fail
Additional info:
Verified.
Version ::
ipa-server-4.1.0-13.el7.x86_64
Results ::
# Just showing here that this is self-signed:
[root@vm1 ~]# getcert list -i 20141219162921
Number of certificates and requests being tracked: 8.
Request ID '20141219162921':
status: MONITORING
stuck: no
key pair storage: type=NSSDB,location='/etc/pki/pki-tomcat/alias',nickname='caSigningCert cert-pki-ca',token='NSS Certificate DB',pin='572794088956'
certificate: type=NSSDB,location='/etc/pki/pki-tomcat/alias',nickname='caSigningCert cert-pki-ca',token='NSS Certificate DB'
CA: dogtag-ipa-ca-renew-agent
issuer: CN=Certificate Authority,O=EXAMPLE.TEST
subject: CN=Certificate Authority,O=EXAMPLE.TEST
expires: 2034-12-19 16:28:38 UTC
key usage: digitalSignature,nonRepudiation,keyCertSign,cRLSign
pre-save command:
post-save command:
track: yes
auto-renew: yes
# Now, try to renew without workaround on AD CS:
[root@vm1 ~]# ipa-cacert-manage renew --external-ca
Exporting CA certificate signing request, please wait
The next step is to get /var/lib/ipa/ca.csr signed by your CA and re-run ipa-cacert-manage as:
ipa-cacert-manage renew --external-cert-file=/path/to/signed_certificate --external-cert-file=/path/to/external_ca_certificate
The ipa-cacert-manage command was successful
[root@vm1 ~]# ls
anaconda-ks.cfg ca-agent.p12 cacert.p12 ipa-tests
# copied CSR to ADCS and signed and copied back.
[root@vm1 ~]# ls
adcs3_chain.p7b anaconda-ks.cfg ca-agent.p12 ca.cer cacert.p12 ipa-tests
# Convert ADCS CA Chain:
[root@vm1 ~]# openssl pkcs7 -print_certs -in adcs3_chain.p7b -inform DER -out adcs3_chain.pem
# Now I see new error message:
[root@vm1 ~]# ipa-cacert-manage renew --external-cert-file=ca.cer --external-cert-file=adcs3_chain.pem -p Secret123
Importing the renewed CA certificate, please wait
Subject name encoding mismatch (visit http://www.freeipa.org/page/Troubleshooting for troubleshooting guide)
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHSA-2015-0442.html
Description of problem: I'm trying to renew a CA Cert and change from self signed to external CA signed using MS ADCS. [root@rhel7-2 ~]# ipa-cacert-manage renew --external-ca Exporting CA certificate signing request, please wait The next step is to get /var/lib/ipa/ca.csr signed by your CA and re-run ipa-cacert-manage as: ipa-cacert-manage renew --external-cert-file=/path/to/signed_certificate --external-cert-file=/path/to/external_ca_certificate The ipa-cacert-manage command was successful [root@rhel7-2 ~]# cd /root/certs [root@rhel7-2 certs]# ls adcs2_chain.p7b ca.cer [root@rhel7-2 certs]# openssl pkcs7 -print_certs -in /root/certs/adcs2_chain.p7b -inform DER -out /root/certs/adcs2_chain.pem [root@rhel7-2 certs]# ipa-cacert-manage renew --external-cert-file=/root/certs/adcs2_chain.pem --external-cert-file=/root/certs/ca.cer -p Secret123 Importing the renewed CA certificate, please wait Not compatible with the current CA certificate: %s Command ''/usr/bin/certutil' '-d' '/tmp/tmpAYIjfk' '-A' '-n' 'IPA CA' '-t' 'C,,'' returned non-zero exit status 255 Version-Release number of selected component (if applicable): ipa-server-4.1.0-10.el7.x86_64 certmonger-0.75.14-2.el7.x86_64 nss-tools-3.16.2.3-2.el7.x86_64 How reproducible: unknown Steps to Reproduce: 1. Install IPA server 2. ipa-cacert-manage renew --external-ca 3. copy CSR to windows ADCS server 4. sign cert 5. copy cert and ADCS CA cert chain to IPA server 6. convert ADCS CA cert chain from p7b to DER pem openssl pkcs7 -print_certs -in <p7b_file> -inform DER -out <pem_file> 7. ipa-cacert-manage renew --external-cert-file=<pem_file> --external-cert-file=<cacert> -p <password> Actual results: fails like above Expected results: no fail Additional info: