Help Center/ Message & SMS/ FAQs/ Troubleshooting/ What Do I Do If the Message "Could Not Derive Key" Is Displayed When I Commission the SMS Sending Function?
Updated on 2024-01-22 GMT+08:00

What Do I Do If the Message "Could Not Derive Key" Is Displayed When I Commission the SMS Sending Function?

During the execution of the SMS code example for AK/SK authentication, if the error message "Could not derive key" is displayed, check whether JAR package dependency conflicts exist.

For example, if the JAR package dependencies are as follows:

Maven: org.bouncycastle:bcpkix-jdk15on:1.68
Maven: org.bouncycastle:bcprov-jdk15on:1.68
Maven:org.bouncycastle:bcprov-jdk15to18:1.70

Change their versions to 1.68 as follows:

Maven: org.bouncycastle:bcpkix-jdk15on:1.68
Maven: org.bouncycastle:bcprov-jdk15on:1.68
Maven:org.bouncycastle:bcprov-jdk15to18:1.68