Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/certs/csr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class X509CertificateRequest extends CryptoCertificate implements core.Cr
action: "import",
type: "request",
attributes: {
id: hashSPKI,
id: keyAlg.id || hashSPKI,
label: algorithm.label || "X509 Request",
token: !!(algorithm.token),
},
Expand Down
2 changes: 1 addition & 1 deletion src/certs/x509.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class X509Certificate extends CryptoCertificate implements core.CryptoX50
action: "import",
type: "x509",
attributes: {
id: hashSPKI,
id: keyAlg.id || hashSPKI,
label: algorithm.label || certLabel,
token: !!(algorithm.token),
},
Expand Down
3 changes: 2 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as pvtsutils from "pvtsutils";
export type ITemplate = graphene.ITemplate;

export interface Pkcs11Attributes {
id?: pvtsutils.BufferSource;
id?: string | pvtsutils.BufferSource;
token?: boolean;
sensitive?: boolean;
label?: string;
Expand Down Expand Up @@ -98,6 +98,7 @@ export interface Pkcs11Params {
token?: boolean;
sensitive?: boolean;
label?: string;
id?: string;
}

export interface AlwaysAuthenticateParams {
Expand Down