Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enrolling a Certificate in Microsoft Certification services for a User From Java Program

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?

like image 990
Dungeon Hunter Avatar asked Aug 26 '11 06:08

Dungeon Hunter


1 Answers

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.

like image 54
Manish Singh Avatar answered Sep 18 '22 23:09

Manish Singh