avancement planning
This commit is contained in:
+6
-2
@@ -44,8 +44,12 @@ function createTLogAuthority(tlogInstance) {
|
||||
keyDetails === protobuf_specs_1.PublicKeyDetails.PKIX_RSA_PKCS1V15_4096_SHA256
|
||||
? 'pkcs1'
|
||||
: 'spki';
|
||||
/* istanbul ignore next */
|
||||
return {
|
||||
logID: tlogInstance.logId.keyId,
|
||||
baseURL: tlogInstance.baseUrl,
|
||||
logID: tlogInstance.checkpointKeyId
|
||||
? tlogInstance.checkpointKeyId.keyId
|
||||
: tlogInstance.logId.keyId,
|
||||
publicKey: core_1.crypto.createPublicKey(tlogInstance.publicKey.rawBytes, keyType),
|
||||
validFor: {
|
||||
start: tlogInstance.publicKey.validFor?.start || BEGINNING_OF_TIME,
|
||||
@@ -57,7 +61,7 @@ function createCertAuthority(ca) {
|
||||
/* istanbul ignore next */
|
||||
return {
|
||||
certChain: ca.certChain.certificates.map((cert) => {
|
||||
return core_1.X509Certificate.parse(cert.rawBytes);
|
||||
return core_1.X509Certificate.parse(Buffer.from(cert.rawBytes));
|
||||
}),
|
||||
validFor: {
|
||||
start: ca.validFor?.start || BEGINNING_OF_TIME,
|
||||
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
import type { X509Certificate, crypto } from '@sigstore/core';
|
||||
export type TLogAuthority = {
|
||||
logID: Buffer;
|
||||
baseURL: string;
|
||||
publicKey: crypto.KeyObject;
|
||||
validFor: {
|
||||
start: Date;
|
||||
|
||||
Reference in New Issue
Block a user