# Error loading certificate

**URL:** https://community.wowza.com/t/error-loading-certificate/96751
**Category:** Wowza Streaming Engine
**Created:** [December 17, 2023, 6:47pm UTC](https://community.wowza.com/t/error-loading-certificate/96751 "2023-12-17T18:47:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![77f00657d0bb53ef90ae](https://avatars.discourse-cdn.com/v4/letter/7/e9c0ed/32.png) [@77f00657d0bb53ef90ae](https://community.wowza.com/u/77f00657d0bb53ef90ae)
#### Post date: [December 17, 2023, 6:47pm UTC](https://community.wowza.com/t/error-loading-certificate/96751/1 "2023-12-17T18:47:07Z")

</div>

I created self sign sslf with below command  
keytool -genkey -keysize 2048 -alias wowza -keyalg RSA -keystore ssl.mycompany.com.jks

but enfine have a error when stream via ssl  
CertificateUtilsloadCertificateX509[load]: : java.io.IOException: Invalid keystore format|at java.base/sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)|at java.base/sun.security.util.KeyStoreDelegator.engineLoad(Unknown Source)|at java.base/java.security.KeyStore.load(Unknown Source)|at com.wowza.wms.util.CertificateUtils.loadCertificateX509(CertificateUtils.java:195)|at com.wowza.wms.util.CertificateUtils.loadCertificateX509(CertificateUtils.java:149)|at com.wowza.wms.webrtc.model.WebRTCContext.loadWebRTCSSLCertificates(WebRTCContext.java:266)|at com.wowza.wms.webrtc.model.WebRTCContext.init(WebRTCContext.java:180)|at com.wowza.wms.vhost.VHost.init(VHost.java:558)|at com.wowza.wms.vhost.VHostSingleton.init(VHostSingleton.java:62)|at com.wowza.wms.server.Server.startVHost(Server.java:3802)|at com.wowza.wms.server.Server.startVHosts(Server.java:4318)|at com.wowza.wms.server.Server.start(Server.java:1143)|at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)|at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

---

<div class="post-metadata">

### Author: ![Umair\_Siddiqi](https://avatars.discourse-cdn.com/v4/letter/u/e8c25b/32.png) [@Umair\_Siddiqi](https://community.wowza.com/u/Umair_Siddiqi)
#### Post date: [March 15, 2024, 7:29am UTC](https://community.wowza.com/t/error-loading-certificate/96751/2 "2024-03-15T07:29:11Z")

</div>

Hi,

It looks like there might be an issue with the format of the keystore file. When generating a self-signed SSL certificate using the `keytool` command, it’s important to ensure that the keystore format is compatible with what Wowza Streaming Engine expects.

Here are a few steps you can take to troubleshoot and potentially resolve the issue:

1. **Verify Keystore Format** : Ensure that the keystore format is correct. Wowza Streaming Engine typically expects a Java KeyStore (JKS) format. You can check the format using the following command:

```auto
keytool -list -keystore ssl.mycompany.com.jks

```

If the keystore format is incorrect, you may need to recreate the keystore in the correct format.

1. **Recreate Keystore** : If the keystore format is incorrect or if you suspect there may be an issue with the keystore, you can recreate it using the following command:

```auto
keytool -genkey -keysize 2048 -alias wowza -keyalg RSA -keystore ssl.mycompany.com.jks

```

Make sure to specify the correct alias ( `wowza` in this case) and keystore file name ( `ssl.mycompany.com.jks` ).

It has been a while. I am sure you might have been able to figure out the issue. If not and you still having issues you can [submit a support ticket](https://www.wowza.com/support/open-ticket)
