Step 1: Create a public/private key pair in a JKS file name privatekey.jks file.
You can change the attribute name according to your requirement.
keytool -genkey -alias Sandeep -keyalg RSA -dname "CN=Singh, OU=gbs, O=bea, L=abc, ST=
Step 2: self signing the certificate
----------------------------------------
keytool -selfcert -v -alias Sandeep -keypass keypass -keystore C:\bea92\user_projects\domains\Batch2Eval\Client-cert\new\privatekey.jks -storepass storepass -storetype jks
Step 3: Exporting the certificate from the keystore into a DER file.
--------------------------------------------------------------------------------
keytool -export -v -alias Sandeep -file rootca.der -keystore C:\bea92\user_projects\domains\Batch2Eval\Client-cert\new\privatekey.jks -storepass storepass
Step 4: Creating a trust for the above certificate in trust.jks file
keytool -import -v -trustcacerts -alias Singh -file rootca.der -keystore C:\bea92\user_projects\domains\Batch2Eval\Client-cert\new\trust.jks -storepass storepass
No comments:
Post a Comment