How to Setup secure access to myMO

  • 7006456
  • 16-Jul-2010
  • 11-Jul-2012

Environment

myMO 4.5

myMO 4.6

myMO 4.7

Windows, Unix and Linux


Situation

Some users did not setup keystore and import correctly and myMO can not be accessed. This might also the case when the user access myMO but fail to display the chartbuilder portlet

Resolution

 keystore ------------
To setup up just ssl between BSM and myMO so that you can do communicate via SSL such as https://hostpc.mosol.com/web/guest/childbuilder
 
1) Instructions to create and apply a self-signed certificate to enable Java Web Start in secure mode:
1 Stop the server.
 
2 Move the cursor to cd D://Managedobects/config
At a command prompt, enter: gencert -host hostpc.mosol.com
gencert.bat utility is located in the ManagedObjects/bin directory. It takes the option
-host, followed by the name of the host. The gencert.bat utility requires the J2SDK because
it relies on the keytool command line utility provided by Java. Use the host name, not the IP
address.
A keystore and a certificate valid for testhost are generated. The keystore (keystore) and
certificate (keystore.cer) are stored in the directory from which the gencert command was
executed.
 
3 To import the newly created certificate keystore.cer to the Managed Objects Console, enter
the following command at a command prompt (where keytool is in your path):
MY Windows 7, I list CMD and run as admin, then
D:\ManagedObjects\config>keytool -import -v -alias hostpc.mosol.com -file keystore.cer -keypass changeit -keystore "c:\Program Files\Java\jdk1.6.0_17\jre\lib\security\cacerts" -storepass changeit
Owner: CN=hostpc.mosol.com
Issuer: CN=hostpc.mosol.com
Serial number: 4c2257f4
Valid from: Wed Jun 23 14:52:36 EDT 2010 until: Sat Jun 20 14:52:36 EDT 2020
Certificate fingerprints:
MD5: 64:51:9E:CC:BA:D3:FA:23:06:77:3E:61:6C:34:30:35
SHA1: AA:C5:F4:B3:86:1A:47:9F:11:71:16:8A:68:D8:8B:07:44:39:D1:9E
Signature algorithm name: SHA1withRSA
Version: 3
Trust this certificate? [no]: yes
Certificate was added to keystore
[Storing c:\Program Files\Java\jdk1.6.0_17\jre\lib\security\cacerts]
 
In another console,
D:\ManagedObjects\bin>keytool -v -list -keystore "c:\Program Files\Java\jdk1.6.0_17\jre\lib\security\cacerts"
 

4) D:\ManagedObjects\bin>cp keystore \myMO\server\conf