Using Microsft Certificate Services user can enroll/create their own certificate. How i can create this certificate using a Java Program?
Could anybody point out right apis for connecting to Microsoft certification services and do the certificate managing tasks?
You can get information around the API here
From here you can find information around keyTool which is used to generate certificates
Following commands might be of help to you
keytool -genkey -keystore server-keystore.jks -alias server_alias \
-dname "CN=hostnameofserver,OU=orgunit" \
-keyalg "RSA" -sigalg "SHA1withRSA" -keysize 2048 -validity 365
keytool -export -keystore server-keystore.jks -alias server_alias -file server.crt
keytool -import -keystore client-truststore.jks -file server.crt
From JDK 1.6 , you can programmatically access MS CryptoAPI also.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With