You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by "Michel Schudel (JIRA)" <ji...@apache.org> on 2009/11/10 14:47:28 UTC
[jira] Created: (WSS-218) getAliasForX509Cert(String, BigInteger)
in CryptoBase returns null if not all aliases are certificates
getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates
------------------------------------------------------------------------------------------------------
Key: WSS-218
URL: https://issues.apache.org/jira/browse/WSS-218
Project: WSS4J
Issue Type: Bug
Components: WSS4J Core
Affects Versions: 1.5.8
Reporter: Michel Schudel
Assignee: Ruchith Udayanga Fernando
We want to retrieve a certificate based an on X509IssuerSerial. Our keystore has not only the correct certificates but also a lot of secret (3DES) keys.
The method getAliasForX509Cert(String, BigInteger) does not check if an alias is a certificate entry, resulting in a null return when the first alias found is a (secret) key.
Please wrap line 334-353 in version 1.5.8 as follows:
if (keystore.isCertificate(alias) {
(line 334-353)
}
That should do it.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org
[jira] Updated: (WSS-218) getAliasForX509Cert(String, BigInteger)
in CryptoBase returns null if not all aliases are certificates
Posted by "Michel Schudel (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WSS-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michel Schudel updated WSS-218:
-------------------------------
Description:
We want to retrieve a certificate based an on X509IssuerSerial. Our keystore has not only the correct certificates but also a lot of secret (3DES) keys.
The method getAliasForX509Cert(String, BigInteger) does not check if an alias is a certificate entry, resulting in a null return when the first alias found is a (secret) key.
Please wrap line 334-353 in version 1.5.8 as follows:
if (keystore.isCertificateEntry(alias) {
(line 334-353)
}
That should do it.
was:
We want to retrieve a certificate based an on X509IssuerSerial. Our keystore has not only the correct certificates but also a lot of secret (3DES) keys.
The method getAliasForX509Cert(String, BigInteger) does not check if an alias is a certificate entry, resulting in a null return when the first alias found is a (secret) key.
Please wrap line 334-353 in version 1.5.8 as follows:
if (keystore.isCertificate(alias) {
(line 334-353)
}
That should do it.
> getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates
> ------------------------------------------------------------------------------------------------------
>
> Key: WSS-218
> URL: https://issues.apache.org/jira/browse/WSS-218
> Project: WSS4J
> Issue Type: Bug
> Components: WSS4J Core
> Affects Versions: 1.5.8
> Reporter: Michel Schudel
> Assignee: Ruchith Udayanga Fernando
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> We want to retrieve a certificate based an on X509IssuerSerial. Our keystore has not only the correct certificates but also a lot of secret (3DES) keys.
> The method getAliasForX509Cert(String, BigInteger) does not check if an alias is a certificate entry, resulting in a null return when the first alias found is a (secret) key.
> Please wrap line 334-353 in version 1.5.8 as follows:
> if (keystore.isCertificateEntry(alias) {
> (line 334-353)
> }
> That should do it.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org
[jira] Commented: (WSS-218) getAliasForX509Cert(String, BigInteger)
in CryptoBase returns null if not all aliases are certificates
Posted by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WSS-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12775437#action_12775437 ]
Colm O hEigeartaigh commented on WSS-218:
-----------------------------------------
> Have you fixed this bug (wss-218) in the private method (getAliasForX509Cert(String, BigInteger) explicitly too?
Yes, check the subversion diff given in WSS-218.
Colm.
> getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates
> ------------------------------------------------------------------------------------------------------
>
> Key: WSS-218
> URL: https://issues.apache.org/jira/browse/WSS-218
> Project: WSS4J
> Issue Type: Bug
> Components: WSS4J Core
> Affects Versions: 1.5.8
> Reporter: Michel Schudel
> Assignee: Colm O hEigeartaigh
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> We want to retrieve a certificate based an on X509IssuerSerial. Our keystore has not only the correct certificates but also a lot of secret (3DES) keys.
> The method getAliasForX509Cert(String, BigInteger) does not check if an alias is a certificate entry, resulting in a null return when the first alias found is a (secret) key.
> Please wrap line 334-353 in version 1.5.8 as follows:
> if (keystore.isCertificateEntry(alias) {
> (line 334-353)
> }
> That should do it.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org
[jira] Resolved: (WSS-218) getAliasForX509Cert(String, BigInteger)
in CryptoBase returns null if not all aliases are certificates
Posted by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WSS-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh resolved WSS-218.
-------------------------------------
Resolution: Duplicate
Assignee: Colm O hEigeartaigh (was: Ruchith Udayanga Fernando)
This has already been fixed for 1.5.9:
https://issues.apache.org/jira/browse/WSS-210
Colm.
> getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates
> ------------------------------------------------------------------------------------------------------
>
> Key: WSS-218
> URL: https://issues.apache.org/jira/browse/WSS-218
> Project: WSS4J
> Issue Type: Bug
> Components: WSS4J Core
> Affects Versions: 1.5.8
> Reporter: Michel Schudel
> Assignee: Colm O hEigeartaigh
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> We want to retrieve a certificate based an on X509IssuerSerial. Our keystore has not only the correct certificates but also a lot of secret (3DES) keys.
> The method getAliasForX509Cert(String, BigInteger) does not check if an alias is a certificate entry, resulting in a null return when the first alias found is a (secret) key.
> Please wrap line 334-353 in version 1.5.8 as follows:
> if (keystore.isCertificateEntry(alias) {
> (line 334-353)
> }
> That should do it.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org
[jira] Commented: (WSS-218) getAliasForX509Cert(String, BigInteger)
in CryptoBase returns null if not all aliases are certificates
Posted by "Michel Schudel (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WSS-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12775435#action_12775435 ]
Michel Schudel commented on WSS-218:
------------------------------------
Colm,
The patch supplied in WSS-210 does not fix this issue, which is in a different method: getAliasForX509Cert(Certificate).
Have you fixed this bug (wss-218) in the private method (getAliasForX509Cert(String, BigInteger) explicitly too?
Regards,
Michel
> getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates
> ------------------------------------------------------------------------------------------------------
>
> Key: WSS-218
> URL: https://issues.apache.org/jira/browse/WSS-218
> Project: WSS4J
> Issue Type: Bug
> Components: WSS4J Core
> Affects Versions: 1.5.8
> Reporter: Michel Schudel
> Assignee: Colm O hEigeartaigh
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> We want to retrieve a certificate based an on X509IssuerSerial. Our keystore has not only the correct certificates but also a lot of secret (3DES) keys.
> The method getAliasForX509Cert(String, BigInteger) does not check if an alias is a certificate entry, resulting in a null return when the first alias found is a (secret) key.
> Please wrap line 334-353 in version 1.5.8 as follows:
> if (keystore.isCertificateEntry(alias) {
> (line 334-353)
> }
> That should do it.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org
[jira] Closed: (WSS-218) getAliasForX509Cert(String, BigInteger) in
CryptoBase returns null if not all aliases are certificates
Posted by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WSS-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh closed WSS-218.
-----------------------------------
> getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates
> ------------------------------------------------------------------------------------------------------
>
> Key: WSS-218
> URL: https://issues.apache.org/jira/browse/WSS-218
> Project: WSS4J
> Issue Type: Bug
> Components: WSS4J Core
> Affects Versions: 1.5.8
> Reporter: Michel Schudel
> Assignee: Colm O hEigeartaigh
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> We want to retrieve a certificate based an on X509IssuerSerial. Our keystore has not only the correct certificates but also a lot of secret (3DES) keys.
> The method getAliasForX509Cert(String, BigInteger) does not check if an alias is a certificate entry, resulting in a null return when the first alias found is a (secret) key.
> Please wrap line 334-353 in version 1.5.8 as follows:
> if (keystore.isCertificateEntry(alias) {
> (line 334-353)
> }
> That should do it.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org
[jira] Commented: (WSS-218) getAliasForX509Cert(String, BigInteger)
in CryptoBase returns null if not all aliases are certificates
Posted by "Michel Schudel (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WSS-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12775438#action_12775438 ]
Michel Schudel commented on WSS-218:
------------------------------------
Thanks.
> getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates
> ------------------------------------------------------------------------------------------------------
>
> Key: WSS-218
> URL: https://issues.apache.org/jira/browse/WSS-218
> Project: WSS4J
> Issue Type: Bug
> Components: WSS4J Core
> Affects Versions: 1.5.8
> Reporter: Michel Schudel
> Assignee: Colm O hEigeartaigh
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> We want to retrieve a certificate based an on X509IssuerSerial. Our keystore has not only the correct certificates but also a lot of secret (3DES) keys.
> The method getAliasForX509Cert(String, BigInteger) does not check if an alias is a certificate entry, resulting in a null return when the first alias found is a (secret) key.
> Please wrap line 334-353 in version 1.5.8 as follows:
> if (keystore.isCertificateEntry(alias) {
> (line 334-353)
> }
> That should do it.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org