Using a cloud-init yaml file adding a certificate like this:
ca-certs:
# If present, the 'trusted' parameter should contain a certificate (or list
# of certificates) to add to the system as trusted CA certificates.
# Pay close attention to the YAML multiline list syntax. The example shown
# here is for a list of multiline certificates.
# - Amazon RDS SSL Certificate (http://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem)
trusted:
- |
-----BEGIN CERTIFICATE-----
MIIDQzCCAqygAwIBAgIJAOd1tlfiGoEoMA0GCSqGSIb3DQEBBQUAMHUxCzAJBgNV
BAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdTZWF0dGxlMRMw
EQYDVQQKEwpBbWF6b24uY29tMQwwCgYDVQQLEwNSRFMxHDAaBgNVBAMTE2F3cy5h
bWF6b24uY29tL3Jkcy8wHhcNMTAwNDA1MjI0NDMxWhcNMTUwNDA0MjI0NDMxWjB1
MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHU2Vh
dHRsZTETMBEGA1UEChMKQW1hem9uLmNvbTEMMAoGA1UECxMDUkRTMRwwGgYDVQQD
ExNhd3MuYW1hem9uLmNvbS9yZHMvMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB
gQDKhXGU7tizxUR5WaFoMTFcxNxa05PEjZaIOEN5ctkWrqYSRov0/nOMoZjqk8bC
med9vPFoQGD0OTakPs0jVe3wwmR735hyVwmKIPPsGlaBYj1O6llIpZeQVyupNx56
UzqtiLaDzh1KcmfqP3qP2dInzBfJQKjiRudo1FWnpPt33QIDAQABo4HaMIHXMB0G
A1UdDgQWBBT/H3x+cqSkR/ePSIinPtc4yWKe3DCBpwYDVR0jBIGfMIGcgBT/H3x+
cqSkR/ePSIinPtc4yWKe3KF5pHcwdTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldh
c2hpbmd0b24xEDAOBgNVBAcTB1NlYXR0bGUxEzARBgNVBAoTCkFtYXpvbi5jb20x
DDAKBgNVBAsTA1JEUzEcMBoGA1UEAxMTYXdzLmFtYXpvbi5jb20vcmRzL4IJAOd1
tlfiGoEoMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAvguZy/BDT66x
GfgnJlyQwnFSeVLQm9u/FIvz4huGjbq9dqnD6h/Gm56QPFdyMEyDiZWaqY6V08lY
LTBNb4kcIc9/6pc0/ojKciP5QJRm6OiZ4vgG05nF4fYjhU7WClUx7cxq1fKjNc2J
UCmmYqgiVkAGWRETVo+byOSDZ4swb10=
-----END CERTIFICATE-----
The certificate is added to the /etc/ca-certificates.conf file but there is a blank line between the previous content and the line added by cloud-init. In this situation running update-ca-certificates doesn't take the cloud-init certificates into account. Removing the blank line and running update-ca-certificates again fixes the issue.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: cloud-init 0.6.3-0ubuntu1.1
ProcVersionSignature: User Name 3.2.0-31.50-virtual 3.2.28
Uname: Linux 3.2.0-31-virtual x86_64
ApportVersion: 2.0.1-0ubuntu14
Architecture: amd64
Date: Fri Nov 9 15:01:03 2012
Ec2AMI: ami-3d4ff254
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: us-east-1d
Ec2InstanceType: m1.medium
Ec2Kernel: aki-825ea7eb
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
TERM=screen
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
Using a cloud-init yaml file adding a certificate like this:
ca-certs: s3.amazonaws. com/rds- downloads/ mysql-ssl- ca-cert. pem) qygAwIBAgIJAOd1 tlfiGoEoMA0GCSq GSIb3DQEBBQUAMH UxCzAJBgNV RMwEQYDVQQIEwpX YXNoaW5ndG9uMRA wDgYDVQQHEwdTZW F0dGxlMRMw wpBbWF6b24uY29t MQwwCgYDVQQLEwN SRFMxHDAaBgNVBA MTE2F3cy5h 29tL3Jkcy8wHhcN MTAwNDA1MjI0NDM xWhcNMTUwNDA0Mj I0NDMxWjB1 QQGEwJVUzETMBEG A1UECBMKV2FzaGl uZ3RvbjEQMA4GA1 UEBxMHU2Vh BEGA1UEChMKQW1h em9uLmNvbTEMMAo GA1UECxMDUkRTMR wwGgYDVQQD W1hem9uLmNvbS9y ZHMvMIGfMA0GCSq GSIb3DQEBAQUAA4 GNADCBiQKB tizxUR5WaFoMTFc xNxa05PEjZaIOEN 5ctkWrqYSRov0/ nOMoZjqk8bC GD0OTakPs0jVe3w wmR735hyVwmKIPP sGlaBYj1O6llIpZ eQVyupNx56 h1KcmfqP3qP2dIn zBfJQKjiRudo1FW npPt33QIDAQABo4 HaMIHXMB0G BT/H3x+ cqSkR/ePSIinPtc 4yWKe3DCBpwYDVR 0jBIGfMIGcgBT/ H3x+ ePSIinPtc4yWKe3 KF5pHcwdTELMAkG A1UEBhMCVVMxEzA RBgNVBAgTCldh 24xEDAOBgNVBAcT B1NlYXR0bGUxEzA RBgNVBAoTCkFtYX pvbi5jb20x AsTA1JEUzEcMBoG A1UEAxMTYXdzLmF tYXpvbi5jb20vcm RzL4IJAOd1 AwGA1UdEwQFMAMB Af8wDQYJKoZIhvc NAQEFBQADgYEAvg uZy/BDT66x nFSeVLQm9u/ FIvz4huGjbq9dqn D6h/Gm56QPFdyME yDiZWaqY6V08lY c9/6pc0/ ojKciP5QJRm6OiZ 4vgG05nF4fYjhU7 WClUx7cxq1fKjNc 2J kAGWRETVo+ byOSDZ4swb10=
# If present, the 'trusted' parameter should contain a certificate (or list
# of certificates) to add to the system as trusted CA certificates.
# Pay close attention to the YAML multiline list syntax. The example shown
# here is for a list of multiline certificates.
# - Amazon RDS SSL Certificate (http://
trusted:
- |
-----BEGIN CERTIFICATE-----
MIIDQzCCA
BAYTAlVTM
EQYDVQQKE
bWF6b24uY
MQswCQYDV
dHRsZTETM
ExNhd3MuY
gQDKhXGU7
med9vPFoQ
UzqtiLaDz
A1UdDgQWB
cqSkR/
c2hpbmd0b
DDAKBgNVB
tlfiGoEoM
GfgnJlyQw
LTBNb4kcI
UCmmYqgiV
-----END CERTIFICATE-----
The certificate is added to the /etc/ca- certificates. conf file but there is a blank line between the previous content and the line added by cloud-init. In this situation running update- ca-certificates doesn't take the cloud-init certificates into account. Removing the blank line and running update- ca-certificates again fixes the issue.
ProblemType: Bug ature: User Name 3.2.0-31.50-virtual 3.2.28 Zone: us-east-1d ture: all
DistroRelease: Ubuntu 12.04
Package: cloud-init 0.6.3-0ubuntu1.1
ProcVersionSign
Uname: Linux 3.2.0-31-virtual x86_64
ApportVersion: 2.0.1-0ubuntu14
Architecture: amd64
Date: Fri Nov 9 15:01:03 2012
Ec2AMI: ami-3d4ff254
Ec2AMIManifest: (unknown)
Ec2Availability
Ec2InstanceType: m1.medium
Ec2Kernel: aki-825ea7eb
Ec2Ramdisk: unavailable
PackageArchitec
ProcEnviron:
TERM=screen
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)