HA! yep, re-requesting the cert using version 0.77.1 solved this... I can request a cert and after a manual approval, I'm able to download and monitor the cert. THANK YOU!

I'm also having another problem. When I try to use dogtag-submit like this:

/usr/libexec/certmonger/dogtag-submit -E https://dogtag.test.org:8443/ca/ee/ca -A https://dogtag.test.org:8443/ca/agent/ca -T caAgentServerCert -i /tmp/test/ca.crt -c /tmp/test/cert.pem -k /tmp/test/key.pem

I get this:

Request ID '20150404113812':
        status: CA_REJECTED
        ca-error: Server at "https://dogtag.test.org:8443/ca/ee/ca/profileSubmit" replied: Invalid Credential.
        stuck: yes
        key pair storage: type=FILE,location='/etc/ssl/get2cert.key'
        certificate: type=FILE,location='/etc/ssl/get2cert.crt'
        CA: DogtagAuto
        issuer:
        subject:
        expires: unknown
        pre-save command:
        post-save command:
        track: yes
        auto-renew: yes


however, when I use curl like this:

curl "https://dogtag.test.org:8443/ca/ee/ca/profileSubmit?profileId=caAgentServerCert&cert_request_type=pkcs10&cert_request=-----BEGINTE+REQUEST-----%0AMIIFBjCCAu4CAQAwgYUxGzAZBgNVBAoTElRhcmdldCBDb3Jwb3JhdGlvbjEdMBsG%0AA1UECxMUcjUwOSBJbnRlcm1lZGlhdGUgQ0ExFDASBgNVBAcTC01pbm5lYXBvbGlz%0AMRIwEAYDVQQIEwlNaW5uZXNvdGExCzAJBgNVBAYTAlVTMRAwDgYDVQQDEwdyNTA5%0AIENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAodOjRhEbG3mKbZPN%0As7dtJgBHBvGksFBvnVXyK2DuY5%2FE7RayxvroQRG42gs5oiEkT4QaCBJlXfsv6NCp%0AiB7btiO9EGlSGcfofAE1ek0plHlh0wtdVJQLMGqbgeaIF8KjV%2FKVBvOtWFjHLLb3%0A92910oUvUxwNffRSDMaOqyAZHdio8r5xUy8zk6dHmpTAdUPSFcmpLaquohCn2cF7%0AAIS0DQ%2Bi0LDSyN1zhbiOTmgT3RiHL%2F5ajZ83VJf3A08FFxGrNCjWdgokB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MhaW78FSaIzJtEWjeQpyg8XCjNtB4Cz4txNaig6YdNer6kFoYiPh%0A5UNVH%2BmeFjJn1fhKq8Imyy6MwHHaZTDsU8I3uUGo6xyIPgKMkLrFsDSo8BumLUGJ%0A56hxNQGixzsO%2B1lIahjBr79Aevzb48l6woMeQBYfLNLKTm290BKXsVgrif19XQ3E%0AZgehMupo%2FZyXjY%2BX4YadNEb8kN5d2cvKCsnjO9urHfAiBPnZtZlYZl1Y%0A-----END+CERTIFICATE+REQUEST-----%0A&xml=true" --pass password --cacert /tmp/test/ca.crt --key /tmp/test/key.pem --cert /tmp/test/client.pem

I get a valid response.

<?xml version="1.0" encoding="UTF-8" standalone="no"?><XMLResponse><Status>0</Status><Requests><Request><Id>57</Id><SubjectDN>CN=r509 CA,C=US,ST=Minnesota,L=Minneapolis,OU=r509 Intermediate CA,O=Test Corporation</SubjectDN><serialno>2e</serialno><b64>MIIE0DCCA7igAwIBAgIBLjANBgkqhkiG9w0BAQsFADBEMSEwHwYDVQQKDBh0ZXN0Lm9yZyBTZWN1cml0eSBEb21haW

cert data........

LP15bCE6K5hABEUfrmZiLJvjBQjFx67Bs0vBaDDb1lqJ8pyjzFHhXtDx5g+/YOzzKqoRdN</b64></Request></Requests></XMLResponse>


I'm using a cert and key extracted from the caadmin pkcs12 credentials. Can you confirm this behavior in your test environment?

Thanks SO MUCH for your help,
--steve


On Tue, Apr 7, 2015 at 12:56 PM, Nalin Dahyabhai <nalin@redhat.com> wrote:
On Tue, Apr 07, 2015 at 12:18:24PM -0500, Steve Neuharth wrote:
> yes, the certificate in the request file has a newline after the
> certificate data:
>
> cert=-----BEGIN CERTIFICATE-----
>  MIIDajCCAlKgAwIBAgIBIDANBgkqhkiG9w0BAQsFADBEMSEwHwYDVQQKDBh0ZXN0
> ...cert data...
>  lRCw27w7Yw/JUMqJYoE=
>                                                     <---- extra newline
>  -----END CERTIFICATE-----
>
>
> Looks like that's the problem. When I make a similar request using cURL, I
> don't get the '\n' in the xml so it must be an error in parsing the xml
> response inside dogtag-submit. I've also tried the v77.1-1 rpm from rawhide
> and I get the same behavior.

Hmm, I'm testing with 0.77.1 and pki-ca-9.0.3-38.el6_6 (you're on Fedora
IIRC, so it's not exactly the same, but I don't have an F21 box handy
ATM), and the data's getting cleaned before it's saved there.

Did you start with an older version and update after dogtag-submit had
finished its work?  The newer daemon wouldn't have been in a position to
clean up the data it got from the helper in that case.

Nalin