FIPS に準拠するよう dotTEST を設定できます。
このセクションの内容
https://www.bouncycastle.org/download/bouncy-castle-java-fips/ から以下の BouncyCastle FIPS ライブラリをダウンロードする必要があります。
bc-fips-<VERSION>.jar および bctls-fips-<VERSION>.jar を <DOTTEST_INSTALL_DIR>/bin/dottest/java/jars
ディレクトリにコピーします。
keytool
を使用して、cacerts ファイルを FIPS 準拠 BCFKS フォーマットに変換します。cd <DOTTEST_INSTALL_DIR> move bin\dottest\Jre_x64\lib\security\cacerts bin\dottest\Jre_x64\lib\security\cacerts.pkcs12 bin\dottest\Jre_x64\bin\keytool.exe -importkeystore -srckeystore bin\dottest\Jre_x64\lib\security\cacerts.pkcs12 -srcstoretype PKCS12 -destkeystore bin\dottest\Jre_x64\lib\security\cacerts -deststoretype BCFKS -providername BCFIPS -providerclass org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider -providerpath bin\dottest\java\jars\bc-fips-<VERSION>.jar -srcstorepass changeit -deststorepass changeit |
<DOTTEST_INSTALL_DIR>\etc
ディレクトリにある dottestcli.jvm ファイルを開き、次の行を挿入します。
-Djavax.net.ssl.trustStorePassword=changeit |
<DOT
ディレクトリにある java.policy ファイルを開き、デフォルト ドメインに次のパーミッションを挿入します。TE
ST_INSTALL_DIR>/bin/dottest/Jre_x64/conf/security/
permission java.lang.RuntimePermission "accessClassInPackage.sun.security.internal.spec"; permission org.bouncycastle.crypto.CryptoServicesPermission "tlsAlgorithmsEnabled"; |
<DOTTEST_INSTALL_DIR>/bin/dottest/Jre_x64/conf/
ディレクトリにある logging.properties ファイルを開き、Bouncy Castle のロガー設定を挿入します。
org.bouncycastle.jsse.provider.DisabledAlgorithmConstraints.level=SEVERE org.bouncycastle.jsse.provider.PropertyUtils.level=SEVERE org.bouncycastle.jsse.provider.ProvTlsClient.level=SEVERE |
変更を保存します。