Index: /branches/rel_apv_10_7/usr/click/lib/libwebui/webui.c
===================================================================
--- /branches/rel_apv_10_7/usr/click/lib/libwebui/webui.c	(revision 39281)
+++ /branches/rel_apv_10_7/usr/click/lib/libwebui/webui.c	(working copy)
@@ -157,6 +157,7 @@
 extern int send_fastcgi_request(char* msg);
 
 
+
 static int
 add_firewall_rule(int port)
 {
@@ -1876,16 +1877,14 @@
 static int convert_pfx_to_pem(const char *pfx_file, const char *pem_file) 
 {
     char command[1024];
-	char *pass;
-	pass = getpass("Enter the password of the pfx file: ");
-	if(pass == NULL){
+	char *pass = getpass("Enter the password of the pfx file: ");
+	if (pass == NULL || strlen(pass) == 0) {
 		printf("Error in reading password of the pfx file\n");
 		return FAIL;
 	}
-	// printf("Password entered: %s\n", pass);
 	snprintf(command, sizeof(command),
-	        "openssl pkcs12 -in \"%s\" -out \"%s\" -clcerts -passin pass:%s -passout pass:%s",
-        	pfx_file, pem_file, pass, pass);
+			"openssl pkcs12 -in \"%s\" -out \"%s\" -clcerts -passin pass:%s -nodes",
+			pfx_file, pem_file, pass);
     if (system(command) != 0) {
         return FAIL;
     }
@@ -1912,8 +1911,9 @@
 				else {
 					return SUCCESS;
 				}
-			} else {
+			} else{
 				/* Bug 23370, chenyl, 20090810 */
+				printf("Import file is not pfx %s\n", file_dir);
 				snprintf(syscmd, MAX_SSL_CRT_COM_LEN, "mv -f \"%s\" \"%s\"", file_dir, outfile);
 				system(syscmd);
 				/* Bug 23370, end */
