Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deveopment help, Add CSR Attribute #4

Open
greenpdx opened this issue Jan 11, 2023 · 1 comment
Open

Deveopment help, Add CSR Attribute #4

greenpdx opened this issue Jan 11, 2023 · 1 comment

Comments

@greenpdx
Copy link

I am having a issue trying to add a Attribute using add_csr_attribute(Attribute)
The Attribute is something like.

OID: "2.5.4.20"
values: "999999999".to_string()

How do you convert a string to OID?
How do you convert a string of numbers to values?

@Outurnate
Copy link
Contributor

Do you need dynamic Oid parsing, or are you looking to hard code a constant Oid in your source? If you need a const Oid, use the mkoid binary shipped with this lib's bcder dependency. If it's dynamic, I can share some code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants