diff --git a/components/certificate-mgt/org.wso2.carbon.certificate.mgt.core/pom.xml b/components/certificate-mgt/org.wso2.carbon.certificate.mgt.core/pom.xml
index 2850739cb6..17a217ed57 100644
--- a/components/certificate-mgt/org.wso2.carbon.certificate.mgt.core/pom.xml
+++ b/components/certificate-mgt/org.wso2.carbon.certificate.mgt.core/pom.xml
@@ -144,7 +144,7 @@
bcpkix-jdk15on
- com.google.code.jscep.wso2
+ org.wso2.orbit.com.google.code.jscep
jscep
diff --git a/components/certificate-mgt/org.wso2.carbon.certificate.mgt.core/src/main/java/org/wso2/carbon/certificate/mgt/core/internal/CertificateManagementServiceComponent.java b/components/certificate-mgt/org.wso2.carbon.certificate.mgt.core/src/main/java/org/wso2/carbon/certificate/mgt/core/internal/CertificateManagementServiceComponent.java
index 82582e1b40..80198c9560 100644
--- a/components/certificate-mgt/org.wso2.carbon.certificate.mgt.core/src/main/java/org/wso2/carbon/certificate/mgt/core/internal/CertificateManagementServiceComponent.java
+++ b/components/certificate-mgt/org.wso2.carbon.certificate.mgt.core/src/main/java/org/wso2/carbon/certificate/mgt/core/internal/CertificateManagementServiceComponent.java
@@ -27,6 +27,8 @@ import org.wso2.carbon.certificate.mgt.core.config.CertificateManagementConfig;
import org.wso2.carbon.certificate.mgt.core.config.datasource.DataSourceConfig;
import org.wso2.carbon.certificate.mgt.core.dao.CertificateManagementDAOFactory;
import org.wso2.carbon.certificate.mgt.core.exception.CertificateManagementException;
+import org.wso2.carbon.certificate.mgt.core.scep.SCEPManager;
+import org.wso2.carbon.certificate.mgt.core.scep.SCEPManagerImpl;
import org.wso2.carbon.certificate.mgt.core.service.CertificateManagementService;
import org.wso2.carbon.certificate.mgt.core.service.CertificateManagementServiceImpl;
import org.wso2.carbon.certificate.mgt.core.util.CertificateManagementConstants;
@@ -72,6 +74,9 @@ public class CertificateManagementServiceComponent {
bundleContext.registerService(CertificateManagementService.class.getName(),
CertificateManagementServiceImpl.getInstance(), null);
+ bundleContext.registerService(SCEPManager.class.getName(),
+ new SCEPManagerImpl(), null);
+
if (log.isDebugEnabled()) {
log.debug("Certificate management core bundle has been successfully initialized");
}
diff --git a/components/certificate-mgt/org.wso2.carbon.certificate.mgt.core/src/main/java/org/wso2/carbon/certificate/mgt/core/internal/SCEPManagerServiceComponent.java b/components/certificate-mgt/org.wso2.carbon.certificate.mgt.core/src/main/java/org/wso2/carbon/certificate/mgt/core/internal/SCEPManagerServiceComponent.java
deleted file mode 100644
index 98b7a21f9f..0000000000
--- a/components/certificate-mgt/org.wso2.carbon.certificate.mgt.core/src/main/java/org/wso2/carbon/certificate/mgt/core/internal/SCEPManagerServiceComponent.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package org.wso2.carbon.certificate.mgt.core.internal;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.osgi.framework.BundleContext;
-import org.osgi.service.component.ComponentContext;
-import org.wso2.carbon.certificate.mgt.core.scep.SCEPManager;
-import org.wso2.carbon.certificate.mgt.core.scep.SCEPManagerImpl;
-
-/**
- * @scr.component name="org.wso2.carbon.certificate.mgt.core.scep" immediate="true"
- */
-public class SCEPManagerServiceComponent {
-
- private static final Log log = LogFactory.getLog(SCEPManagerServiceComponent.class);
-
- protected void activate(ComponentContext componentContext) {
-
- try {
- if (log.isDebugEnabled()) {
- log.debug("Initializing SCEP core bundle");
- }
-
- BundleContext bundleContext = componentContext.getBundleContext();
- bundleContext.registerService(SCEPManager.class.getName(),
- new SCEPManagerImpl(), null);
-
- if (log.isDebugEnabled()) {
- log.debug("SCEP core bundle has been successfully initialized");
- }
- } catch (Throwable e) {
- String msg = "Error occurred while initializing SCEP core bundle";
- log.error(msg, e);
- }
- }
-
- protected void deactivate(ComponentContext ctx) {
- if (log.isDebugEnabled()) {
- log.debug("Deactivating SCEP core bundle");
- }
- }
-
-}
diff --git a/features/certificate-mgt/org.wso2.carbon.certificate.mgt.server.feature/pom.xml b/features/certificate-mgt/org.wso2.carbon.certificate.mgt.server.feature/pom.xml
index b420ccf25b..9082e9cc11 100644
--- a/features/certificate-mgt/org.wso2.carbon.certificate.mgt.server.feature/pom.xml
+++ b/features/certificate-mgt/org.wso2.carbon.certificate.mgt.server.feature/pom.xml
@@ -49,7 +49,7 @@
bcpkix-jdk15on
- com.google.code.jscep.wso2
+ org.wso2.orbit.com.google.code.jscep
jscep
@@ -125,7 +125,7 @@
org.wso2.orbit.org.bouncycastle:bcpkix-jdk15on:${bcpkix.wso2.version}
- com.google.code.jscep.wso2:jscep:${jscep.version}
+ org.wso2.orbit.com.google.code.jscep:jscep:${jscep.version}
commons-io.wso2:commons-io:${version.commons.io}
diff --git a/pom.xml b/pom.xml
index f1de16ce9c..8512d92c6a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1289,7 +1289,7 @@
${bcpkix.wso2.version}
- com.google.code.jscep.wso2
+ org.wso2.orbit.com.google.code.jscep
jscep
${jscep.version}
@@ -1839,7 +1839,7 @@
[1.52.0,1.60.0)
- 2.0.2.wso2v2
+ 2.3.0.wso2v1
2.26.1.wso2v3