Register a Microsoft authentication service certificate for a user from a java program

With microsft certificate services, users can register / create their own certificates How do I create this certificate using a java program?

Can anyone point out the correct APIs to connect to Microsoft authentication services and perform certificate management tasks?

Solution

You can get information about the API here

Starting here, you can find information about the keytool used to generate certificates

The following commands may help 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

Starting with JDK 1.6, you can also access MS CryptoAPI programmatically

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>