TPS token enrollment fails to setupSecureChannel when TPS and TKS security db
is on fips mode.
Ticket #2513.
Simple fix allows the TPS and TKS the ability to obtain the proper internal
token, even in FiPS mode.
From 00bba5092fa32b956d646b4711411b8c57bd8f75 Mon Sep 17 00:00:00 2001
From: Jack Magne <[email protected]>
Date: Thu, 20 Oct 2016 15:18:12 -0700
Subject: [PATCH] TPS token enrollment fails to setupSecureChannel when TPS and
TKS security db is on fips mode.
Ticket #2513.
Simple fix allows the TPS and TKS the ability to obtain the proper internal token, even in FiPS mode.
---
.../cms/src/com/netscape/cms/servlet/tks/SecureChannelProtocol.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/base/server/cms/src/com/netscape/cms/servlet/tks/SecureChannelProtocol.java b/base/server/cms/src/com/netscape/cms/servlet/tks/SecureChannelProtocol.java
index db42cab..1997d11 100644
--- a/base/server/cms/src/com/netscape/cms/servlet/tks/SecureChannelProtocol.java
+++ b/base/server/cms/src/com/netscape/cms/servlet/tks/SecureChannelProtocol.java
@@ -688,10 +688,11 @@ public class SecureChannelProtocol {
public CryptoToken returnTokenByName(String name, CryptoManager manager) throws NoSuchTokenException {
+ CMS.debug("returnTokenByName: requested name: " + name);
if (name == null || manager == null)
throw new NoSuchTokenException();
- if (name.equals("internal") || name.equals("Internal KeyStorage Token")) {
+ if (name.equals("internal") || name.equals("Internal Key Storage Token")) {
return manager.getInternalKeyStorageToken();
} else {
return manager.getTokenByName(name);
--
2.5.0
_______________________________________________
Pki-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pki-devel