Skip to content

Commit

Permalink
Deprecate pki client-cert-del
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Nov 3, 2023
1 parent 1d9d890 commit 67a3ee2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@

/**
* @author Endi S. Dewata
* @deprecated Replaced by NSSCertRemoveCLI.
*/
@Deprecated
public class ClientCertRemoveCLI extends CommandCLI {

public static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(ClientCertRemoveCLI.class);
public static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(ClientCertRemoveCLI.class);

public ClientCLI clientCLI;

Expand All @@ -46,6 +48,8 @@ public void printHelp() {
@Override
public void execute(CommandLine cmd) throws Exception {

logger.warn("The pki " + getFullName() + " has been deprecated. Use pki nss-cert-del instead.");

String[] cmdArgs = cmd.getArgs();

if (cmdArgs.length != 1) {
Expand Down
5 changes: 5 additions & 0 deletions docs/changes/v11.5.0/Tools-Changes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,8 @@ The `--months-valid` option has been deprecated.
== New pki nss-cert-del CLI ==

The `pki nss-cert-del` command has been added to delete a certificate from NSS database.

== Deprecate pki client-cert-del ==

The `pki client-cert-del` command has been deprecated.
Use `pki nss-cert-del` command instead.

0 comments on commit 67a3ee2

Please sign in to comment.