https://pulumi.com logo
#typescript
Title
# typescript
q

quiet-hairdresser-18834

05/28/2021, 12:17 AM
Copy code
const fs = require('fs')
    const data = fs.readFileSync('./Files/certificates/dev.pfx', 'base64')
    var cert = new azure.keyvault.Certificate("LetsEncrypt", {
        name: "LetsEncrypt",
        keyVaultId: keyVaultId,
        certificate: {
            contents: data,
            password: "MyPassword"
        },
        certificatePolicy: {
             issuerParameters: {
                 name: "Unknown"
            },
            keyProperties: {
                exportable: false,
                keyType: "RSA",
                reuseKey: false,
                keySize: 2048
            },
            secretProperties: {
                contentType: "application/x-pkcs12",
            },
        }

    })
3 Views