Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.

NOISSUE - Move create csr to sdk#175

Merged
dborovcanin merged 3 commits into
absmach:mainfrom
WashingtonKK:csr
Sep 26, 2025
Merged

NOISSUE - Move create csr to sdk#175
dborovcanin merged 3 commits into
absmach:mainfrom
WashingtonKK:csr

Conversation

@WashingtonKK

Copy link
Copy Markdown
Contributor

What type of PR is this?

This is a refactror of certs

What does this do?

Moves create csr function to sdk package.

Which issue(s) does this PR fix/relate to?

No related issue.

Have you included tests for your changes?

Did you document any new/modified features?

Notes

Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Comment thread cli/certs.go Outdated
Comment thread cli/certs.go Outdated
}

csr, err := CreateCSR(pm, data)
csr, err := ctxsdk.CreateCSR(pm, data)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename ctxsdk to a more appropriate variable

Comment thread sdk/sdk.go Outdated
CSR []byte `json:"csr,omitempty"`
}

func CreateCSR(metadata certs.CSRMetadata, privKey any) (certs.CSR, errors.SDKError) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be part of the sdk interface

Comment thread cli/certs.go Outdated
"os"

"github.com/absmach/certs"
ctxsdk "github.com/absmach/certs/sdk"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need an alias here

Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
@dborovcanin dborovcanin merged commit 39d7202 into absmach:main Sep 26, 2025
3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants