I want to convert\import a https certificate from .pfx to JKS format to configure it in jenkins, getting error

While converting\importing a https certificate from .pfx to JKS format, getting error “Private key not stored as PKCS#8 EncryptedPrivateKeyInfo: java.io.IOException: algid parse error, not a sequence”.

Please suggest or guide me.

Thanks in advance