EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB39915: "Illegal key size" error in the source code of a blank page that appears when trying to generate the client certificate using a browser from MicroStrategy Mobile Certificate Server 9.4.1 - 10.x


Community Admin

• Strategy


When trying to generate the client certificate using a browser from MicroStrategy Mobile Certificate Server, a blank page returns and the following error appears in the source code: "exception encrypting data - java.security.InvalidKeyException: Illegal key size"

SYMPTOM:
When trying to generate the client certificate using a browser from Strategy Mobile Certificate Server, a blank page returns and the following error appears in the source code: "exception encrypting data - java.security.InvalidKeyException: Illegal key size"
URL used to generate the certificate:
NOTE: The spaces are required in order for the certificate to be generated correctly via browser.
For ASP:
http://fully_qualified_domain_name:port/CertificateServer/asp/certificate.aspx?action=GetCertificate&loginParams=<auth><device_id>mobile_device</device_id><pkcs12_password>keystore_password</pkcs12_password><field n="pwd" v="MSTR_password"/><field n="login" v="MSTR_login"/></auth>
For JSP:
https://fully_qualified_domain_name:port/CertificateServer/servlet/certificate?action=GetCertificate&loginParams=<auth><device_id>mobile_device</device_id><pkcs12_password>keystore_password</pkcs12_password><field n="pwd" v="MSTR_password"/><field n="login" v="MSTR_login"/></auth>
Error returned in the HTML source code:
 

ka04W000000OfDUQA0_0EM440000002AJa.jpeg

 
CAUSE:
This is not an Strategy related issue. By default the key size is limited up to 128 by JDK 1.6. When the security policy using a key size larger than 128, then the above exception appears.
ACTION:
To resolve this issue, download and install the "Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 6" from http://www.oracle.com/technetwork/java/javase/downloads/index.htm and copy the files the following locations.
Location to copy the files
ASP environment:
\Program Files (x86)\Common Files\MicroStrategy\JRE\160_07\Win64\lib\security
OR
\Program Files (x86)\Common Files\MicroStrategy\JRE\160_07\Win32\lib\security
 
JSP environment:
$JAVA_HOME/jre/lib/security


Comment

0 comments

Details

Knowledge Article

Published:

April 21, 2017

Last Updated:

April 21, 2017