Technical data

A Using the WebLogic Java Utilities
A-4 Administration Guide
der2pem
The der2pem utility converts an X509 certificate from DER format to PEM format.
The
.pem file is written in the same directory as the source .der file.
Syntax
$ java utils.der2pem derFile [headerFile] [footerFile]
Example
$ java utils.der2pem graceland_org.der
Decoding
................................................................
Argument Description
derFile
The name of the file to convert. The filename must end with a .der
extension, and must contain a valid certificate in
.der format.
headerFile
The header to place in the PEM file. The default header is “-----BEGIN
CERTIFICATE-----”.
Use a header file if the DER file being converted is a private key file, and
create the header file containing one of the following:
n “-----BEGIN RSA PRIVATE KEY-----” for an unencrypted private
key.
n “-----BEGIN ENCRYPTED PRIVATE KEY-----” for an encrypted
private key.
Note: There must be a new line at the end of the header line in the file.
footerFile
The header to place in the PEM file. The default header is “-----END
CERTIFICATE-----”.
Use a footer file if the DER file being converted is a private key file, and
create the footer file containing one of the following in the header:
n “-----END RSA PRIVATE KEY-----” for an unencrypted private
key.
n “-----END ENCRYPTED PRIVATE KEY-----” for an encrypted
private key.
Note: There must be a new line at the end of the header line in the file.