feat(provider): new deployment provider: s3

This commit is contained in:
Fu Diwei
2026-01-19 11:31:35 +08:00
committed by RHQYZ
parent edb858cfec
commit c0bcf6d0fd
21 changed files with 703 additions and 85 deletions
+3 -3
View File
@@ -59,7 +59,7 @@ func (s *CertificateService) DownloadArchivedFile(ctx context.Context, req *dtos
var bytes []byte
switch strings.ToUpper(req.CertificateFormat) {
case "", "PEM":
case "", string(domain.CertificateFormatTypePEM):
{
serverCertPEM, intermediaCertPEM, err := xcert.ExtractCertificatesFromPEM(certificate.Certificate)
if err != nil {
@@ -114,7 +114,7 @@ func (s *CertificateService) DownloadArchivedFile(ctx context.Context, req *dtos
bytes = buf.Bytes()
}
case "PFX":
case string(domain.CertificateFormatTypePFX):
{
const pfxPassword = "certimate"
@@ -151,7 +151,7 @@ func (s *CertificateService) DownloadArchivedFile(ctx context.Context, req *dtos
bytes = buf.Bytes()
}
case "JKS":
case string(domain.CertificateFormatTypeJKS):
{
const jksPassword = "certimate"