Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 608658 Details for
Bug 816232
serial number incorrectly cast from BigInt to integer in installation wizard
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to fix
Ticket_219-fix-Dogtag_8.1_Errata_Branch.patch (text/plain), 4.96 KB, created by
Ade Lee
on 2012-08-31 19:48:00 UTC
(
hide
)
Description:
patch to fix
Filename:
MIME Type:
Creator:
Ade Lee
Created:
2012-08-31 19:48:00 UTC
Size:
4.96 KB
patch
obsolete
>Index: base/util/src/com/netscape/cmsutil/crypto/CryptoUtil.java >=================================================================== >--- base/util/src/com/netscape/cmsutil/crypto/CryptoUtil.java (revision 2471) >+++ base/util/src/com/netscape/cmsutil/crypto/CryptoUtil.java (working copy) >@@ -637,32 +637,26 @@ > /** > * Creates a Certificate template. > */ >- public static X509CertInfo createX509CertInfo(KeyPair pair, >- int serialno, String issuername, String subjname, >- Date notBefore, Date notAfter) >- throws IOException, >- CertificateException, >- InvalidKeyException { >+ public static X509CertInfo createX509CertInfo(KeyPair pair, >+ BigInteger serialno, String issuername, String subjname, >+ Date notBefore, Date notAfter) throws IOException, >+ CertificateException, InvalidKeyException { > return createX509CertInfo(convertPublicKeyToX509Key(pair.getPublic()), > serialno, issuername, subjname, notBefore, notAfter); > } > >- public static X509CertInfo createX509CertInfo(PublicKey publickey, >- int serialno, String issuername, String subjname, >- Date notBefore, Date notAfter) >- throws IOException, >- CertificateException, >- InvalidKeyException { >+ public static X509CertInfo createX509CertInfo(PublicKey publickey, >+ BigInteger serialno, String issuername, String subjname, >+ Date notBefore, Date notAfter) throws IOException, >+ CertificateException, InvalidKeyException { > return createX509CertInfo(convertPublicKeyToX509Key(publickey), serialno, > issuername, subjname, notBefore, notAfter); > } > >- public static X509CertInfo createX509CertInfo(X509Key x509key, >- int serialno, String issuername, String subjname, >- Date notBefore, Date notAfter) >- throws IOException, >- CertificateException, >- InvalidKeyException { >+ public static X509CertInfo createX509CertInfo(X509Key x509key, >+ BigInteger serialno, String issuername, String subjname, >+ Date notBefore, Date notAfter) throws IOException, >+ CertificateException, InvalidKeyException { > // set default; use the other call with "alg" to set algorithm > String alg = "SHA256withRSA"; > try { >@@ -673,13 +667,10 @@ > } > } > >- public static X509CertInfo createX509CertInfo(X509Key x509key, >- int serialno, String issuername, String subjname, >- Date notBefore, Date notAfter, String alg) >- throws IOException, >- CertificateException, >- InvalidKeyException, >- NoSuchAlgorithmException { >+ public static X509CertInfo createX509CertInfo(X509Key x509key, >+ BigInteger serialno, String issuername, String subjname, >+ Date notBefore, Date notAfter, String alg) throws IOException, >+ CertificateException, InvalidKeyException, NoSuchAlgorithmException { > X509CertInfo info = new X509CertInfo(); > > info.set(X509CertInfo.VERSION, new >Index: base/common/src/com/netscape/cms/servlet/csadmin/CertUtil.java >=================================================================== >--- base/common/src/com/netscape/cms/servlet/csadmin/CertUtil.java (revision 2471) >+++ base/common/src/com/netscape/cms/servlet/csadmin/CertUtil.java (working copy) >@@ -335,19 +335,19 @@ > ICertificateAuthority.ID); > cr = (ICertificateRepository) ca.getCertificateRepository(); > BigInteger serialNo = cr.getNextSerialNumber(); >- if (type.equals("selfsign")) { >- CMS.debug("Creating local certificate... issuerdn=" + dn); >- CMS.debug("Creating local certificate... dn=" + dn); >- info = CryptoUtil.createX509CertInfo(x509key, serialNo.intValue(), dn, dn, date, >- date, keyAlgorithm); >- } else { >- String issuerdn = config.getString("preop.cert.signing.dn", ""); >- CMS.debug("Creating local certificate... issuerdn=" + issuerdn); >- CMS.debug("Creating local certificate... dn=" + dn); >+ if (type.equals("selfsign")) { >+ CMS.debug("Creating local certificate... issuerdn=" + dn); >+ CMS.debug("Creating local certificate... dn=" + dn); >+ info = CryptoUtil.createX509CertInfo(x509key, serialNo, dn, dn, >+ date, date, keyAlgorithm); >+ } else { >+ String issuerdn = config.getString("preop.cert.signing.dn", ""); >+ CMS.debug("Creating local certificate... issuerdn=" + issuerdn); >+ CMS.debug("Creating local certificate... dn=" + dn); > >- info = CryptoUtil.createX509CertInfo(x509key, >- serialNo.intValue(), issuerdn, dn, date, date, keyAlgorithm); >- } >+ info = CryptoUtil.createX509CertInfo(x509key, serialNo, >+ issuerdn, dn, date, date, keyAlgorithm); >+ } > CMS.debug("Cert Template: " + info.toString()); > > String instanceRoot = config.getString("instanceRoot");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 816232
: 608658