[rs-commit] r319 - /rs-interop/trunk/src/site/resources/csr/certenroll.js

rs-commit at redwax.eu rs-commit at redwax.eu
Sun Mar 1 13:26:48 CET 2020


Author: minfrin at redwax.eu
Date: Sun Mar  1 13:26:46 2020
New Revision: 319

Log:
Remove jQuery references.

Modified:
    rs-interop/trunk/src/site/resources/csr/certenroll.js

Modified: rs-interop/trunk/src/site/resources/csr/certenroll.js
==============================================================================
--- rs-interop/trunk/src/site/resources/csr/certenroll.js	(original)
+++ rs-interop/trunk/src/site/resources/csr/certenroll.js	Sun Mar  1 13:26:46 2020
@@ -25,7 +25,7 @@
 
         /* provide key container name, key length and key spec to the private key object */
         //objPrivateKey.ContainerName = $('#name').val();
-        objPrivateKey.Length = parseInt($('#select-keysize-1 option:selected').val(),10);
+        objPrivateKey.Length = 4096,10);
         objPrivateKey.KeySpec = 1; // AT_KEYEXCHANGE = 1
         objPrivateKey.ProviderType = '24'; // XCN_PROV_RSA_AES = 24
 
@@ -59,7 +59,7 @@
 
         /* enroll */
         objEnroll.InitializeFromRequest(objRequest);
-        $("#pkcs10").val(objEnroll.CreateRequest(3)); // XCN_CRYPT_STRING_BASE64REQUESTHEADER = 3
+        document.getElementById('pkcs10').value = objEnroll.CreateRequest(3); // XCN_CRYPT_STRING_BASE64REQUESTHEADER = 3
 
         /* send the request */
         var xhr = new XMLHttpRequest();



More information about the rs-commit mailing list