diff options
author | Ade Lee <alee@redhat.com> | 2013-09-25 22:09:10 -0400 |
---|---|---|
committer | Ade Lee <alee@redhat.com> | 2013-09-30 11:52:05 -0400 |
commit | 6eaf2c01c211cf06053c82b1e296909ce8d874b6 (patch) | |
tree | 878a2f962d49686706d78d353aac61d839deb2ec /base/tks/src | |
parent | 5874cad1abe832a4a74cb37a4c22f0e18cf9bd8e (diff) | |
download | pki-6eaf2c01c211cf06053c82b1e296909ce8d874b6.tar.gz pki-6eaf2c01c211cf06053c82b1e296909ce8d874b6.tar.xz pki-6eaf2c01c211cf06053c82b1e296909ce8d874b6.zip |
Add service to generate and retrieve a shared secret
A new REST service has been added to the TKS to manage shared secrets.
The shared secret is tied to the TKS-TPS connector, and is created at the
end of the TPS configuration. At this point, the TPS contacts the TKS and
requests that the shared secret be generated. The secret is returned to the
TPS, wrapped using the subsystem certificate of the TPS.
The TPS should then decrypt the shared secret and store it in its certificate
database. This operations requires JSS changes, though, and so will be deferred
to a later patch. For now, though, if the TPS and TKS share the same certdb, then
it is sufficient to generate the shared secret.
Clients and CLI are also provided. The CLI in particular is used to remove the
TPSConnector entries and the shared secret when the TPS is pkidestroyed.
Diffstat (limited to 'base/tks/src')
-rw-r--r-- | base/tks/src/com/netscape/tks/TKSApplication.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/tks/src/com/netscape/tks/TKSApplication.java b/base/tks/src/com/netscape/tks/TKSApplication.java index b2d43ae87..1ec0576e4 100644 --- a/base/tks/src/com/netscape/tks/TKSApplication.java +++ b/base/tks/src/com/netscape/tks/TKSApplication.java @@ -16,6 +16,7 @@ import com.netscape.cms.servlet.admin.UserCertService; import com.netscape.cms.servlet.admin.UserMembershipService; import com.netscape.cms.servlet.admin.UserService; import com.netscape.cms.servlet.csadmin.SystemConfigService; +import com.netscape.cms.servlet.tks.TPSConnectorService; public class TKSApplication extends Application { @@ -40,6 +41,9 @@ public class TKSApplication extends Application { // system certs classes.add(SystemCertService.class); + // tps connections and shared secrets + classes.add(TPSConnectorService.class); + // exception mapper classes.add(PKIException.Mapper.class); |