1. 找到 java.security 在jvm安装地方 例如:C:/Program Files/Java/jdk1.8.0_181/jre/lib/security
2. 添加 security.provider.9=org.bouncycastle.jce.provider.BouncyCastleProvider
例如:
security.provider.1=sun.security.provider.Sun security.provider.2=sun.security.rsa.SunRsaSign security.provider.3=com.sun.net.ssl.internal.ssl.Provider security.provider.4=com.sun.crypto.provider.SunJCE security.provider.5=sun.security.jgss.SunProvider security.provider.6=com.sun.security.sasl.Provider security.provider.7=org.jcp.xml.dsig.internal.dom.XMLDSigRI security.provider.8=sun.security.smartcardio.SunPCSC security.provider.9=org.bouncycastle.jce.provider.BouncyCastleProvider
这9不一定非得填9,而是根据上一个security.provider序号往下加一。