<html><head><title></title></head><body><!-- rte-version 0.2 9947551637294008b77bce25eb683dac --><div class="rte-style-maintainer rte-pre-wrap" bbg-color="default"data-bb-font-size="medium" bbg-font-size="medium" style="white-space: pre-wrap; font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth";"style="white-space: pre-wrap; font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth"; color: rgb(0, 0, 0);"><br><div class="rte-style-maintainer rte-pre-wrap" data-color="global-default" bbg-color="default" data-bb-font-size="medium"bbg-font-size="medium" style="white-space: pre-wrap; font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth";"style="white-space: pre-wrap; font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth"; color: rgb(0, 0, 0);">I was not able to sync a protected repo from redhat. The host running pulp 3 subscribes to redhat directly.<div><br></div><div>I first tried to use the following to create remote:<div>{</div><div>"name": "rhel-x86_64-server-7",</div><div>"url": "<a spellcheck="false" bbg-destination="rte:bind"data-destination="rte:bind" href="https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os">https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os</a>",</div><div>"ssl_ca_certificate": "/etc/rhsm/ca/redhat-uep.pem",</div><div>"ssl_client_certificate": "/etc/pki/consumer/cert.pem",                  </div><div>"ssl_client_key": "/etc/pki/consumer/key.pem",</div><div>"ssl_validation": true,</div><div>"proxy_url": "<a spellcheck="false" bbg-destination="rte:bind"data-destination="rte:bind" href="http://proxy:80">http://proxy:80</a>",</div><div>"download_concurrency": 1,</div><div>"policy": "immediate"</div><div>} </div><div><br></div><div>Remote was created but I got errors "Jun 12 12:51:43 ip-1-76-158-244 rq[19389]: pulp: rq.worker:ERROR: ssl.SSLError: [PEM: NO_START_LINE] no start line (_ssl.c:3626)" when I tried to sync with http POST :24817${REMOTE_HREF}sync/ repository=$REPO_HREF</div><div><br></div><div>Then I tried to converted the pem file to a json format </div><div>{</div><div>"name": "rhel-x86_64-server-7",</div><div>"url": "<a spellcheck="false" bbg-destination="rte:bind"data-destination="rte:bind" href="https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os">https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os</a>",</div><div>"ssl_ca_certificate": "-----BEGIN CERTIFICATE-----\nMIIG/TCCBOWgAwIBAgIBNzANBgkqhkiG9w0BAQUFADCBsTELMAkGA1UEBhMCVVMx\nFzAVBg</div><div>...</div><div>"ssl_client_certificate": "-----BEGIN CERTIFICATE-----\nMIIMojCCCoqgAwIBAgIISqmnKnJ9sEowDQ</div><div>...</div><div>"ssl_client_key": "-----BEGIN RSA PRIVATE KEY-----\nMIIJKQIBAAKCAgEAuujl5HxnIDTSOemZOyH3Jr5xxgrc1rCee</div><div>...</div><div>"ssl_validation": true,</div><div>"proxy_url": "<a spellcheck="false" bbg-destination="rte:bind"data-destination="rte:bind" href="http://proxy:80">http://proxy:80</a>",</div><div>"download_concurrency": 1,</div><div>"policy": "immediate"</div><div>} </div><div><br></div><div>I got this error when I tried to sync repo with the remote:</div><div>Jun 12 12:07:57 ip-1-76-158-244 rq[19389]: ssl.SSLError: [SSL] PEM lib (_ssl.c:3503)</div><div><br></div></div><div><br></div><div>What is the correct json input for creating a remote to redhat? How do I troubleshoot the sync issue? Thanks for your help.</div></div></div></body></html>