39 Commits

Author SHA1 Message Date
Sun Yimin
cf0c739dcf
smx509: change CreateCertificate's template and parent parameter type to any 2023-02-03 10:25:03 +08:00
Sun Yimin
9805aa448a
x509: create CRLs with Issuer.RawSubject 2022-11-18 11:45:46 +08:00
Sun Yimin
94087a6660
x509: Reallow duplicate attributes in CSRs. 2022-11-18 10:28:22 +08:00
Sun Yimin
c4540b0c31
add name constraints test 2022-11-15 14:48:49 +08:00
Sun Yimin
1ce7714cc9
rollback first #93 2022-11-02 17:11:18 +08:00
Sun Yimin
fd940fcd06
fix failed case for golang < 1.18.x 2022-11-02 16:56:06 +08:00
Sun Yimin
8b25009e6f
respect GODEBUG changes for allowing SHA1 certificates #93 2022-11-02 16:42:50 +08:00
Sun Yimin
6a556b26d3
smx509: don't panic marshaling invalid ECDSA keys #81 2022-08-30 10:35:57 +08:00
Sun Yimin
7e81d05ce9
[sync] crypto/x509: restrict CRL number to <=20 octets #69 2022-07-15 10:25:53 +08:00
Sun Yimin
58513465fa
x509: supplement test cases 2022-07-14 15:03:15 +08:00
Sun Yimin
823cf4a470
test: reduce fmt.Printf 2022-06-17 08:49:50 +08:00
Sun Yimin
60f734b82c
disable signing with MD5WithRSA #56 2022-05-13 08:22:35 +08:00
Emman
41d0934ef4 crypto/x509: revert serial length restriction 2022-04-22 08:37:49 +08:00
Emman
64f522ea1b Revert "#43, crypto/x509: don't allow too long serials"
This reverts commit b3f10b9a4cfeb8c384282f3e61aaf7356efab636.

# Conflicts:
#	smx509/x509.go
#	smx509/x509_test.go
2022-04-22 08:28:12 +08:00
Emman
ca98bd6f5c crypto/x509: reject duplicate extensions #48 2022-04-19 16:29:41 +08:00
emmansun
77f61fce9c crypto/x509: don't create certs with negative serials #47 2022-04-17 09:37:03 +08:00
Emman
155ef2943d #44, crypto/x509: omit empty extensions SEQUENCE 2022-04-15 11:05:14 +08:00
Emman
b3f10b9a4c #43, crypto/x509: don't allow too long serials 2022-04-15 11:01:11 +08:00
Emman
efc3350236 Fix ut error 2022-04-11 17:40:41 +08:00
Emman
97217e8a68 crypto/x509: only disable SHA-1 verification for certificates 2022-04-11 17:33:40 +08:00
Emman
eb54032c1b crypto/x509: properly handle issuerUniqueID and subjectUniqueID 2022-04-11 13:36:14 +08:00
Emman
a61731e0e2 duplicated 2022-04-10 11:16:11 +08:00
Emman
7dec383b16 align format 2022-01-21 11:24:10 +08:00
Emman
4156eb1c07 align / change format 2022-01-21 08:33:01 +08:00
徐胖
a6a596c3f9 Alias x509 types 2022-01-20 18:35:16 +08:00
徐胖
20dbdcd08f Alias x509 types 2022-01-20 18:18:53 +08:00
徐胖
f3a1eab5fe Alias x509 types 2022-01-20 18:09:38 +08:00
徐胖
f98e80a8d6 Alias x509 types
Alias x509 types
2022-01-20 17:46:00 +08:00
Emman
f47260760b align x509 implementation 2021-12-03 15:12:27 +08:00
Emman
64a9f8792e refactoring 2021-12-03 09:04:02 +08:00
Emman
18cf7e0e63 fix error 2021-12-02 17:44:03 +08:00
Emman
aff4830dd8 golang version 1.4 is no longer supported 2021-12-02 17:14:50 +08:00
Emman
0469562903 MAGIC - fix 2021-06-28 15:34:53 +08:00
Emman
bdc049b882 MAGIC - refactoring 2021-06-28 11:20:47 +08:00
Emman
6ef7234916 MAGIC - upgrade 2021-06-08 11:45:40 +08:00
emmansun
d8dc283187 MAGIC - use interface to avoid implementation dependency 2021-02-16 10:17:46 +08:00
emmansun
1183f9d3c2 MAGIC - bad idea to port whole x509 2021-02-15 20:09:49 +08:00
emmansun
a1cb0a2616 MAGIC - refactor 2021-02-15 10:36:28 +08:00
emmansun
8e3dc1f490 MAGIC - move x509 related to smx509 package 2021-02-13 18:11:03 +08:00