All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.keyvault.kotlin.outputs.CertificateCertificate.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.keyvault.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property contents The base64-encoded certificate contents.
 * @property password The password associated with the certificate.
 * > **NOTE:** A PEM certificate is already base64 encoded. To successfully import, the `contents` property should include a PEM encoded X509 certificate and a private_key in pkcs8 format. There should only be linux style `\n` line endings and the whole block should have the PEM begin/end blocks around the certificate data and the private key data.
 * To convert a private key to pkcs8 format with openssl use:
 * ```shell
 * openssl pkcs8 -topk8 -nocrypt -in private_key.pem > private_key_pk8.pem
 * ```
 * The PEM content should look something like:
 * ```text
 * -----BEGIN CERTIFICATE-----
 * aGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8K
 * :
 * aGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8K
 * -----END CERTIFICATE-----
 * -----BEGIN PRIVATE KEY-----
 * d29ybGQKd29ybGQKd29ybGQKd29ybGQKd29ybGQKd29ybGQKd29ybGQKd29ybGQK
 * :
 * d29ybGQKd29ybGQKd29ybGQKd29ybGQKd29ybGQKd29ybGQKd29ybGQKd29ybGQK
 * -----END PRIVATE KEY-----
 * ```
 */
public data class CertificateCertificate(
    public val contents: String,
    public val password: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.keyvault.outputs.CertificateCertificate):
            CertificateCertificate = CertificateCertificate(
            contents = javaType.contents(),
            password = javaType.password().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy