web stats
Importing a Trusted Signed Certificate - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 06-17-2016, 12:30 PM
tvsports86 tvsports86 is offline
Mirth Newb
 
Join Date: Oct 2009
Posts: 11
tvsports86 is on a distinguished road
Default Importing a Trusted Signed Certificate

Hello - I'm attempting to import a Trusted Signed Certificate into the Mirth SSL Configuration Manager into the "My Certificates" area I am receiving an exception when doing so. I believe the cert is not corrupt (I'm able to import it in other places, and the password I'm using is correct).

Below is the Exception I received.

Error loading key store file: PKCS12 key store mac invalid - wrong password or corrupted file.
java.io.IOException: PKCS12 key store mac invalid - wrong password or corrupted file.
at org.bouncycastle.jcajce.provider.keystore.pkcs12.P KCS12KeyStoreSpi.engineLoad(Unknown Source)
at java.security.KeyStore.load(Unknown Source)
at com.mirth.connect.plugins.ssl.client.ImportCertifi cateDialog.importKeyStore(Unknown Source)
at com.mirth.connect.plugins.ssl.client.ImportCertifi cateDialog.importCertificate(Unknown Source)
at com.mirth.connect.plugins.ssl.client.ImportCertifi cateDialog.downloadCerts(Unknown Source)
at com.mirth.connect.plugins.ssl.client.ImportCertifi cateDialog.access$1300(Unknown Source)
at com.mirth.connect.plugins.ssl.client.ImportCertifi cateDialog$9.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unk nown Source)
at javax.swing.AbstractButton$Handler.actionPerformed (Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed (Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent( Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(U nknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unkno wn Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at com.mirth.connect.client.ui.MirthDialog.setVisible (MirthDialog.java:56)
at com.mirth.connect.plugins.ssl.client.ImportCertifi cateDialog.initDialog(Unknown Source)
at com.mirth.connect.plugins.ssl.client.ImportCertifi cateDialog.<init>(Unknown Source)
at com.mirth.connect.plugins.ssl.client.CertificatePa nel.importCertificates(Unknown Source)
at com.mirth.connect.plugins.ssl.client.CertificatePa nel.importCertificates(Unknown Source)
at com.mirth.connect.plugins.ssl.client.CertificatePa nel$7.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unk nown Source)
at javax.swing.AbstractButton$Handler.actionPerformed (Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed (Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent( Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(U nknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unkno wn Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Reply With Quote
  #2  
Old 06-17-2016, 12:38 PM
narupley's Avatar
narupley narupley is offline
Mirth Employee
 
Join Date: Oct 2010
Posts: 6,921
narupley is on a distinguished road
Default

First guess is that perhaps you need to install the JCE unlimited strength policy files. This should be done for the installation of Java on the server, and the installation of Java on your local workstation that you're using to run the Administrator.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #3  
Old 06-17-2016, 01:36 PM
tvsports86 tvsports86 is offline
Mirth Newb
 
Join Date: Oct 2009
Posts: 11
tvsports86 is on a distinguished road
Default Importing a Trusted Signed Certificate

OK - I gave that a whirl by downloading the JCE Unlimited Files from the Oracle Site and made sure I had the correct version. I replaced the files, rebooted the server and re-tried to import the Cert. No Luck exact same message. Any other ideas?

Thanks so much for your help.
Reply With Quote
  #4  
Old 06-17-2016, 01:38 PM
narupley's Avatar
narupley narupley is offline
Mirth Employee
 
Join Date: Oct 2010
Posts: 6,921
narupley is on a distinguished road
Default

What machine are you running the client (Administrator) from? You need to make sure to do the same for the Java installation you're using for that.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #5  
Old 06-17-2016, 01:44 PM
tvsports86 tvsports86 is offline
Mirth Newb
 
Join Date: Oct 2009
Posts: 11
tvsports86 is on a distinguished road
Default Importing a Trusted Signed Certificate

I'm running the Mirth Administrator Application from the Server, directly on the machine that I'm trying to install the Trusted Cert on. So only 1 machine in this case. I hope that answers your question.

I also only have 1 version of Java installed 1.8.0_91

Am I doing it correctly?
Reply With Quote
  #6  
Old 06-17-2016, 01:50 PM
narupley's Avatar
narupley narupley is offline
Mirth Employee
 
Join Date: Oct 2010
Posts: 6,921
narupley is on a distinguished road
Default

Okay, maybe it's some other issue then. Can you try converting that to a different format? Maybe just PEM?
__________________
Step 1: JAVA CACHE...DID YOU CLEAR

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #7  
Old 06-17-2016, 03:41 PM
tvsports86 tvsports86 is offline
Mirth Newb
 
Join Date: Oct 2009
Posts: 11
tvsports86 is on a distinguished road
Thumbs up Importing a Trusted Signed Certificate

So I used OpenSLL-Win32 to convert the pfx to pem using the command:

1.) cd C:\OpenSSL-Win32\bin
2.) openssl pkcs12 -in C:\Temp\cert.pfx -out C:\Temp\cert.pem -nodes

Go Figure I get another error, now it states Error loading certificate. Verify the private key is followed by the public certificate. I click OK and it says Entry cannot be loaded. Invalid password or possible corruption.

Any ideas?
Reply With Quote
  #8  
Old 06-17-2016, 04:15 PM
tvsports86 tvsports86 is offline
Mirth Newb
 
Join Date: Oct 2009
Posts: 11
tvsports86 is on a distinguished road
Default

I finally got the cert imported. I decided to download the Portecle Java Utility. I then loaded the cert in that and Exported the Cert is a p12. I imported the p12 and it worked fine.
Reply With Quote
  #9  
Old 08-18-2016, 09:03 AM
RGVHIE RGVHIE is offline
Mirth Newb
 
Join Date: May 2016
Posts: 18
RGVHIE is on a distinguished road
Default Thanks!!!

I had this same issue. I couldn't figure it out and finally this morning stumbled upon this post.

Just wanted to say thank you for sharing as this was driving me nuts.

Now lets see if I can get this connection setup now.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:07 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Mirth Corporation