New Question

Revision history [back]

click to hide/show revision 1
initial version

Import Root CA/Intermediate CA to auth all future certs signed by the CA

Is is possible that ConfigWinRMCertificateAuthPlugin to parse the client cert signed by the Root CA and configure the WinRM service so that all future certs generated and signed by the same Root CA will be automatically trusted and accepted by the WinRM service?

I have used meta data service to pass the certificate to the Cloudbase-init service. When used cert generated by https://raw.githubusercontent.com/cloudbase/winrm-scripts/master/create-winrm-client-cert.sh WinRM service works no problem. When tried with my own cert generated by the Root CA the Cloudbase-init service fails with cryptoapi error 0x80093102 message. Here is the cert in PEM format:

-----BEGIN CERTIFICATE-----
MIID1TCCAr2gAwIBAgIUIbTJ6quMhEoBmf/IWoFQ8vltbnQwDQYJKoZIhvcNAQEL
BQAwFjEUMBIGA1UEAxMLUm9vdCBDQSBQUFIwHhcNMTcwOTI3MDczNjI5WhcNMTcw
OTMwMDczNjU5WjASMRAwDgYDVQQDEwdydW5kZWNrMIIBIjANBgkqhkiG9w0BAQEF
AAOCAQ8AMIIBCgKCAQEApRVYgsFtMympZjjd/VPXsTedNUw0odhQiOp1QueCCV5c
f79e/5u3ymOC7O3q+EKXFJPqELOcAa5p3UxxBOjuKBPAdzXgtecIuSnhpRFXFK59
/l7FrjMjlgQNgBtkoywSqiGFb4dKXfi0T4bnZa0sSVLQonkrz6XrSAt9CTFGOJFN
BmP6Koo7iLPkp3TLQIgqXef3SznjWXxcAN9kNCb4aMEj9L2bUJ2LD+rDdkqCYRAX
MkzZ4JsGGZ0xvSDGkAde7bweQY+xk3ULOBAVkC36TfPTWZ3oNknVwu7H5slwSaS9
pUYx4mJK3JBeakk0v8zoQDBubSD0WlfxYnZd9wN5EQIDAQABo4IBHTCCARkwDgYD
VR0PAQH/BAQDAgOoMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAdBgNV
HQ4EFgQU4y+ozX/QxkKQ091JpCbJaNzivtEwHwYDVR0jBBgwFoAUmOzEvWKLMBXH
RvSS+UJH48Q50hkwTgYIKwYBBQUHAQE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