Testing Publishing to Files
Chapter 16
Publishing
631
c.
At the prompt, enter this:
BtoA <input_file> <output_file>
substituting
<input_file>
with the path to the file that contains the DER
encoded certificate and
<output_file>
with the path to the file to write the
base-64 encoded certificate.
For example, if the file is in
C:\certificates\cert-1234.der
and you want
the base-64 encoded certificate to be in
C:\certificates\cert-1234.txt
,
the command would look like this:
BtoA C:\certificates\cert-1234.der
C:\certificates\cert-1234.txt
d.
When the conversion is complete, open the
cert.txt
file in a text editor. You
should see a base-64 encoded certificate similar to this:
-----BEGIN CERTIFICATE-----
MMIIBtgYJYIZIAYb4QgIFoIIBpzCCAZ8wggGbMIIBRaADAgEAAgEBMA0GCSqG
SIb3DQEBBAUAMFcxC
AJBgNVBAYTAlVTMSwwKgYDVQQKEyNOZXRzY2FwZSBDb21tdW5pY2F0aWhfyyu
ougjgjjgmkgjkgmjg
fjfgjjjgfyjfyj9ucyBDb3Jwb3JhdGlvbjpMEaMBgGA1UECxMRSXNzdWluZyh
gdfhbfdpffjphotoo
gdhkBBdXRob3JpdHkwHhcNOTYxMTA4MDkwNzM0WhcNOTgxMTA4MDkwNzMM0Wj
BXMQswCQYDVQQGEwJ
VUzEsMCoGA1UEChMjTmV0c2NhcGUgQ29tbXVuaWNhdGlvbnMgQ29ycG9yY2F0
aW9ucyBDb3Jwb3Jhd
GlvbjpMEaMBgGA1UECxMRSXNzdWluZyBBdXRob3JpdHkwHh
-----END CERTIFICATE-----
6.
Convert the base 64-encoded certificate to a human-readable form using the Pretty
Print Certificate tool (see Chapter 9, “Pretty Print Certificate Tool” of
CS
Command-Line Tools Guide
).
To convert the base 64-encoded certificate to a human-readable form:
a.
Check the command window to make sure that you are in this directory:
<server_root>/bin/cert/tools
b.
At the prompt, enter this:
PrettyPrintCert <input_file> [<output_file>]
substituting
<input_file>
with the path to the ASCII file that contains the
base-64 encoded certificate and
<output_file>
with the path to the file to write
the certificate in a human-readable form. If you don’t specify an output file, the
certificate information is written to the standard output.
Summary of Contents for CERTIFICATE 7.1 ADMINISTRATOR
Page 1: ...Administrator s Guide Red Hat Certificate System Version7 1 September 2005 ...
Page 22: ...22 Red Hat Certificate System Administrator s Guide September 2005 ...
Page 128: ...Cloning a CA 128 Red Hat Certificate System Administrator s Guide September 2005 ...
Page 368: ...ACL Reference 368 Red Hat Certificate System Administrator s Guide September 2005 ...
Page 460: ...Constraints Reference 460 Red Hat Certificate System Administrator s Guide September 2005 ...
Page 592: ...CRL Extension Reference 592 Red Hat Certificate System Administrator s Guide September 2005 ...