Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to dump certificate bundle? #111

Open
akamac opened this issue Dec 17, 2021 · 2 comments
Open

Any way to dump certificate bundle? #111

akamac opened this issue Dec 17, 2021 · 2 comments

Comments

@akamac
Copy link
Contributor

akamac commented Dec 17, 2021

Hi,

Is there any way to dump not only cert/key/ca, but also cert+ca bundle?

Thanks!

@ChrisChoke
Copy link

I am very interested, too.
In fact that nginx need a certificate bundle with intermediate CA in it.
How do other user solve this? with command as action to call bash script?!

@ChrisChoke
Copy link

for me this example spec solve the bundling for now.
root CA is in cert-store from client. and intermediate CA is bundled with domain cert in one file by this command.

{
    "svcmgr": "command",
    "action": "cat /etc/myservice/ca.pem >> /home/kyle/tmp/certmgr/certs/test1.pem && service nginx restart",
    "request": {
        "CN": "www.example.net",
        "hosts": [
            "example.net",
            "www.example.net"
        ],
        "key": {
            "algo": "ecdsa",
            "size": 521
        },
        "names": [
            {
                "C": "US",
                "ST": "CA",
                "L": "San Francisco",
                "O": "Example, LLC"
            }
        ]
    },
    "private_key": {
        "path": "/etc/ssl/private/www.key",
        "owner": "www-data",
        "group": "www-data",
        "mode": "0600"
    },
    "certificate": {
        "path": "/home/kyle/tmp/certmgr/certs/test1.pem",
        "owner": "www-data",
        "group": "www-data"
    },
    "ca": {
        "path": "/etc/myservice/ca.pem",
        "owner": "www-data",
        "group": "www-data"
    },
    "authority": {
        "remote": "ca.example.net:8888",
        "auth_key": "012345678012345678",
        "label": "www_ca",
        "profile": "three-month",
        "root_ca": "/etc/cfssl/api_server_ca.pem"
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants