Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 5 files changed
  • 0 commit comments
  • 2 contributors
View
16 src/main/java/org/jscep/client/inspect/AbstractCertStoreInspector.java
@@ -38,24 +38,24 @@ private void inspect() throws CertStoreException {
int i = 0;
for (Certificate cert : certs) {
X509Certificate x509 = (X509Certificate) cert;
- LOGGER.debug("{}. '[issuer={}; serial={}]'", new Object[] { ++i,
- x509.getIssuerDN(), x509.getSerialNumber() });
+ LOGGER.debug("{}. '[dn={}; serial={}]'", new Object[] { ++i,
+ x509.getSubjectDN(), x509.getSerialNumber() });
}
LOGGER.debug("Looking for recipient entity");
recipient = selectCertificate(store, getRecipientSelectors());
- LOGGER.debug("Using [issuer={}; serial={}] for recipient entity",
- recipient.getIssuerDN(), recipient.getSerialNumber());
+ LOGGER.debug("Using [dn={}; serial={}] for recipient entity",
+ recipient.getSubjectDN(), recipient.getSerialNumber());
LOGGER.debug("Looking for message signing entity");
signer = selectCertificate(store, getSignerSelectors());
- LOGGER.debug("Using [issuer={}; serial={}] for message signing entity",
- signer.getIssuerDN(), signer.getSerialNumber());
+ LOGGER.debug("Using [dn={}; serial={}] for message signing entity",
+ signer.getSubjectDN(), signer.getSerialNumber());
LOGGER.debug("Looking for issuing entity");
issuer = selectCertificate(store, getIssuerSelectors());
- LOGGER.debug("Using [issuer={}; serial={}] for issuing entity",
- issuer.getIssuerDN(), issuer.getSerialNumber());
+ LOGGER.debug("Using [dn={}; serial={}] for issuing entity",
+ issuer.getSubjectDN(), issuer.getSerialNumber());
}
/**
View
6 src/main/java/org/jscep/message/PkcsPkiEnvelopeDecoder.java
@@ -71,8 +71,8 @@ public PkcsPkiEnvelopeDecoder(final X509Certificate recipient,
validate(pkcsPkiEnvelope);
LOGGER.debug(
- "Decrypting pkcsPkiEnvelope using key belonging to [issuer={}; serial={}]",
- recipient.getIssuerDN(), recipient.getSerialNumber());
+ "Decrypting pkcsPkiEnvelope using key belonging to [dn={}; serial={}]",
+ recipient.getSubjectDN(), recipient.getSerialNumber());
final RecipientInformationStore recipientInfos = pkcsPkiEnvelope
.getRecipientInfos();
RecipientInformation info = recipientInfos
@@ -80,7 +80,7 @@ public PkcsPkiEnvelopeDecoder(final X509Certificate recipient,
if (info == null) {
throw new MessageDecodingException(
- "Missing expected key transfer recipient");
+ "Missing expected key transfer recipient " + recipient.getSubjectDN());
}
LOGGER.debug("pkcsPkiEnvelope encryption algorithm: {}", info
View
4 src/main/java/org/jscep/message/PkcsPkiEnvelopeEncoder.java
@@ -80,8 +80,8 @@ public CMSEnvelopedData encode(final byte[] messageData)
}
edGenerator.addRecipientInfoGenerator(recipientGenerator);
LOGGER.debug(
- "Encrypting pkcsPkiEnvelope using key belonging to [issuer={}; serial={}]",
- recipient.getIssuerDN(), recipient.getSerialNumber());
+ "Encrypting pkcsPkiEnvelope using key belonging to [dn={}; serial={}]",
+ recipient.getSubjectDN(), recipient.getSerialNumber());
OutputEncryptor encryptor;
try {
View
6 src/main/java/org/jscep/message/PkiMessageDecoder.java
@@ -88,7 +88,7 @@ public PkiMessageDecoder(final X509Certificate signer,
SignerInformation signerInfo = signerStore.get(new JcaSignerId(signer));
if (signerInfo == null) {
throw new MessageDecodingException("Could not for signerInfo for "
- + signer.getIssuerDN());
+ + signer.getSubjectDN());
}
LOGGER.debug("pkiMessage digest algorithm: {}", signerInfo
@@ -107,8 +107,8 @@ public PkiMessageDecoder(final X509Certificate signer,
X509CertificateHolder cert = (X509CertificateHolder) certColl
.iterator().next();
LOGGER.debug(
- "Verifying pkiMessage using key belonging to [issuer={}; serial={}]",
- cert.getIssuer(), cert.getSerialNumber());
+ "Verifying pkiMessage using key belonging to [dn={}; serial={}]",
+ cert.getSubject(), cert.getSerialNumber());
SignerInformationVerifier verifier;
try {
verifier = new JcaSimpleSignerInfoVerifierBuilder().build(cert);
View
4 src/main/java/org/jscep/message/PkiMessageEncoder.java
@@ -124,8 +124,8 @@ public CMSSignedData encode(final PkiMessage<?> message)
CMSProcessable content = getContent(message);
LOGGER.debug(
- "Signing pkiMessage using key belonging to [issuer={}; serial={}]",
- signerId.getIssuerDN(), signerId.getSerialNumber());
+ "Signing pkiMessage using key belonging to [dn={}; serial={}]",
+ signerId.getSubjectDN(), signerId.getSerialNumber());
try {
CMSSignedDataGenerator generator = new CMSSignedDataGenerator();
generator.addSignerInfoGenerator(getSignerInfo(message));

No commit comments for this range

Something went wrong with that request. Please try again.