Create
a Wallet with a Self-Signed Certificate and Export the Certificate
The
following steps illustrate creating a wallet, adding a self-signed certificate
to it, viewing the wallet and exporting the certificate:
1. Create
a wallet
orapki
wallet create -wallet /private/user/orapki_use/root
The
wallet is created at the location, /private/user/orapki_use/root.
orapki wallet add -wallet
/private/user/orapki_use/root -dn 'CN=root_test,C=US' -keysize 2048
-self_signed -validity 3650
This creates a self-signed certificate with a validity of 3650
days. The distinguished name of the subject is CN=root_test,C=US. The key
size for the certificate is 2048 bits.
3. View
the wallet
orapki wallet display -wallet
/private/user/orapki_use/root
This is used to view the certificate contained in the wallet.
4. Export
the certificate
orapki wallet export
-wallet /private/user/orapki_use/root -dn 'CN=root_test,C=US' -cert
/private/user/orapki_use/root/b64certificate.txt
This exports the self-signed certificate to the file, b64certificate.txt.
Note that the distinguished name used is the same as in step 2.
No comments:
Post a Comment