-
-
Notifications
You must be signed in to change notification settings - Fork 645
NOTE jsrsasign 8.0.x to 9.0.0 Certificate and CSR API migration guide
Kenji Urushima edited this page Aug 19, 2020
·
16 revisions
UNDER CONSTRUCTION
Some changes such as Certificate class or CertificationRequest class are not yet described in this document. In such case, please see API document or test cases to understand the 9.0.0 updates. Sorry for patience.
Before 8.0.24 Certificate and CSR parser and generator have not worked together. Further more, they didn't have API consistency. In version 9.0.0, such issue will be solved.
Here are major changes between jsrsasign 8.0.x and 9.0.0:
- make arguments for certificate extension constructors defined in KJUR.asn1.x509 consistent and changed
- make certificate extension parsers defined in X509 class consistent and changed
This update misses backward compatibility in some certificate extension APIs.
- method names for all certificate extension parsers are "X509.getExt<>" like X509.getExtAuthorityInfoAccess. They are easy to remember
- all result by certificate extension parsers are JSON objects and they can be passed to constructors for certificate extension like "new KJUR.asn1.x509.AuthorityInfoAccess({...})"
- When you codes don't use certificate extensions, you can update to 9.0.0.
- When you codes use certificate extension APIs without backward compatibility, you need to modify your codes. Check the list below.
- return value format of X509.getExtAuthorityKeyIdentifier
- return value format of X509.getExtSubjectKeyIdentifier
- return value format of X509.getExtSubjectAltName
- KJUR.asn1.x509.CertificatePolicies constructor parameter
- KJUR.asn1.x509.AuthorityInfoAccess constructor parameter
- return value format of X509.getExtKeyUsageString (decipherOnly bugfix)
- return value format of X509.getExtKeyUsageBin (decipherOnly bugfix)
- return value format of X509.getBasicConstraints
- KJUR.asn1.x509.BasicConstraints constructor parameter
- KJUR.asn1.x509.DistributionPointName constructor parameter
- KJUR.asn1.x509.DistributionPoint constructor parameter
- KJUR.asn1.x509.CRLDistributionPoints constructor parameter
- X509.getExtKeyUsage
- X509.getExtCertificatePolicies
- X509.getExtCertificatePolicies
- X509.getPolicyInformation
- X509.getPolicyQualifierInfo
- X509.getUserNotice
- X509.getDisplayText
- X509.getIssuerAltName
- X509.getExtExtKeyUsage
- X509.getExtCRLDistributionPoints
- X509.getDistributionPoint
- X509.getDistributionPointName
- X509.getExtAuthorityInfoAccess
- X509.getExtExtKeyUsageName
- X509.getExtAIAInfo
- X509.getExtSubjectAltName2