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9KWgpHM1loeDRvQTIyUU8vOHYvdGtUeHhPL0Y2K0dwNEdwTmE3WjNLNEpXVEpYbG9vNkFBQ05Cc2xrUnBzWG9PQzFqClpVUW1QYVo1QzZ1WGx2TGhkaHpENU92WkIzd0U4ZDljdFFqdCtsTEJucTIxcU5EVjFhejdvL053eFBEUHkzV2IKOFFZVlRJc0psa011N2JiZGFtbi9OTDFhOWp2YTM0a3BrN01zaDBWaTBxL3BaYmZZM2x3YUpzOGVPanUyMUxZeApUbng4eWsra1hGMTlZaFZTQkdobHlhU1E2c0dUUzRVVWZhSjJ5bUhUa0JyWlJPNFNQMk0wZU1VWjlYS25XSkxiCmc5OUdEOWJremU3N3oyMjhoeFdsOEhHQnoyRWtsZkZoT0lOWgotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
server: https://10.10.160.17:16443
name: kubernetes
contexts:
- context:
cluster: kubernetes
user: kubernetes-admin
name: kubernetes-admin@kubernetes
current-context: kubernetes-admin@kubernetes
kind: Config
preferences: {}
users:
- name: kubernetes-admin
user:
client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURJVENDQWdtZ0F3SUJBZ0lJVWt0czNaQUlSUUl3RFFZSktvWklodmNOQVFFTEJRQXdGVEVUTUJFR0ExVUUKQXhNS2EzVmlaWEp1WlhSbGN6QWVGdzB5TXpBeU1EUXdOak01TURCYUZ3MHlOREF5TURRd05qTTVNRE5hTURReApGekFWQmdOVkJBb1REbk41YzNSbGJUcHRZWE4wWlhKek1Sa3dGd1lEVlFRREV4QnJkV0psY201bGRHVnpMV0ZrCmJXbHVNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQW9TbnBMZzQrMmNjc1BadGoKVmR0TTBRdjNzcUhSb0VNdjlKY2c4VklLNXZJenpkOXdubnVTSHhOa0M0MWQ4MkZMd2FkRlI4RnpWK2NGQnZNegorZ0VFVWg2ZlFyamdmei84NWdOajJWN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ssl pkcs12 -export -out cert.pfx -inkey client.key -in client.crt -certfile ca.crt
需要设置账号密码
sz cert.pfx