-
Notifications
You must be signed in to change notification settings - Fork 133
Getting KRA Transport Certificate
Endi S. Dewata edited this page Jun 13, 2023
·
12 revisions
This page describes the process to get KRA transport certificate from PKI server and import it into the client’s NSS database (default is ~/.dogtag/nssdb
).
For older versions see:
A user with direct access to the server can display the KRA transport certificate in the server’s NSS database:
$ pki-server cert-show kra_transport Cert ID: transport Nickname: kra_transport Token: Internal Key Storage Token Serial Number: 0x7 Subject DN: CN=DRM Transport Certificate,OU=pki-tomcat,O=EXAMPLE Issuer DN: CN=Certificate Authority,O=EXAMPLE Not Valid Before: Wed Apr 14 17:06:49 2021 Not Valid After: Tue Apr 04 17:06:49 2023 Trust flag: u,u,u
To export KRA transport certificate into a file:
$ pki-server cert-export kra_transport --cert-file kra_transport.crt
The file needs to be transferred to the client.
A user without direct access to the server can display KRA transport certificate with the following command:
$ pki kra-cert-transport-show Serial Number: 0x7 Subject DN: CN=DRM Transport Certificate,OU=pki-tomcat,O=EXAMPLE Issuer DN: CN=Certificate Authority,O=EXAMPLE Not Valid Before: Mon Dec 07 18:48:30 CST 2020 Not Valid After: Sun Nov 27 18:48:30 CST 2022
To export KRA transport certificate:
$ pki kra-cert-transport-export -----BEGIN CERTIFICATE----- MIIDnzCCAoegAwIBAgIBBzANBgkqhkiG9w0BAQsFADBIMRAwDgYDVQQKDAdFWEFNUExFMRMwEQYD VQQLDApwa2ktdG9tY2F0MR8wHQYDVQQDDBZDQSBTaWduaW5nIENlcnRpZmljYXRlMB4XDTIwMTIw ODAwNDgzMFoXDTIyMTEyODAwNDgzMFowSzEQMA4GA1UECgwHRVhBTVBMRTETMBEGA1UECwwKcGtp LXRvbWNhdDEiMCAGA1UEAwwZRFJNIFRyYW5zcG9ydCBDZXJ0aWZpY2F0ZTCCASIwDQYJKoZIhvcN AQEBBQADggEPADCCAQoCggEBAMBWBksAVnVIrbR+G66sjBBKPasJhu2rZaIkhI6QsosaSri46MoG A/jrxRQuZn+KGq4QAQKE5JR9KitPGgkE3eM349J5jkVm/EH1YnVkxQ73xPFjuWK9J8zVTMbPO2J3 cB088GqEUuijmuwuIm4zUyxp6a53NKGiq2yAS6wrFCqfc9ZpWYrxARY+QO3Q1lByL6jnVBuItDeM OGg/enAwxY9WpTVSuQiCqQkoP0q/9r8a6e/OUrfvLBWKr7XywdV89qlXL6YSZ1Erv4VGeh33q5AB UUAUFwqmcsv9x40LR80/KyIHzUxIP/wlkYB9XZB8YZMJLNaGtoCI0mgAR7JVICcCAwEAAaOBkDCB jTAfBgNVHSMEGDAWgBRQLtr9TyZiM8kgAU+qA+RijWCNMjBFBggrBgEFBQcBAQQ5MDcwNQYIKwYB BQUHMAGGKWh0dHA6Ly9sb2NhbGhvc3QubG9jYWxkb21haW46ODA4MC9jYS9vY3NwMA4GA1UdDwEB /wQEAwIE8DATBgNVHSUEDDAKBggrBgEFBQcDAjANBgkqhkiG9w0BAQsFAAOCAQEAYG3CSgaIgvzL Bj8t01HZL0+X5aBuFhgMOJnQ5xMMvbj3AI7jb5ybcAyFVKc6jWNzPqWYFGBGSANEOjIlDo9mVCMF jESrkjQ9Blx295ccSg3IGlN/r7V4+fi/AJfWgoIKdzSaAEZ/MXIxjs/LFOydJavnQY41FKZfJePy XHdrO0rUzRh+LGSPzczyNK4nWu0sPse1aipi3m8M9002FT6+ywwb6dMf5rtMoGXDrSlC7HPQKB5t bmQ16SQPwkcFjMxEamRiEAsErtYBMuJ7ezTskdJie+1OyIOCJ72WXhgGFkPIZsonr6maHv5bN0lU mcJJ5Ef11WyzBLUT3rwylH8CRQ== -----END CERTIFICATE-----
To download the transport certificate into a file:
$ pki kra-cert-transport-export --output-file kra_transport.crt
To export KRA transport certificate chain:
$ pki kra-cert-transport-export --pkcs7 -----BEGIN PKCS7----- MIIHjQYJKoZIhvcNAQcCoIIHfjCCB3oCAQExADAPBgkqhkiG9w0BBwGgAgQAoIIHXjCCA58wggKH oAMCAQICAQcwDQYJKoZIhvcNAQELBQAwSDEQMA4GA1UECgwHRVhBTVBMRTETMBEGA1U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3/ 1QoNwqHqtofMDuh+JLPO4Xc9C/pfcWUbTK9f1+bt5SrBhcWYzhZByteGIox7m9F67wH4cADFCiWr fKLVxsF2UlRXcpn63WX71y+iF0ybbFJfvJHkt3BcXqDIZfjfWAvHdx6BPnNWxZoZsCGOFP/32Z/X t8NBIEblEztG9th4ezcoplJOYgo4PiC99gvrsPCBdJHmaqxyGwfDH0prnwQOHSmGw/nTS1wc7Hwy iD9sEa5pcKyMlS98e9l0SvbBN8LX8Uk+eFK2YRv5IWb+kNkIGysEfiCB/FIaF6oaZ51cU/oXMQA= -----END PKCS7-----
To import KRA transport certificate into the user’s NSS database:
$ pki nss-cert-import kra_transport --cert kra_transport.crt
For older versions use the following command:
$ pki client-cert-import kra_transport --cert kra_transport.crt
Tip
|
To find a page in the Wiki, enter the keywords in search field, press Enter, then click Wikis. |