From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Enrico Jorns Date: Mon, 20 Mar 2017 12:36:27 +0100 Message-Id: <20170320113627.25060-4-ejo@pengutronix.de> In-Reply-To: <20170320113627.25060-1-ejo@pengutronix.de> References: <20170320113627.25060-1-ejo@pengutronix.de> Subject: [ptxdist] [PATCH 3/3] scripts: add script that generates test certificates for RAUC List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Enrico Jorns , jlu@pengutronix.de U2lnbmVkLW9mZi1ieTogRW5yaWNvIEpvcm5zIDxlam9AcGVuZ3V0cm9uaXguZGU+Ci0tLQogc2Ny aXB0cy9yYXVjLWdlbi10ZXN0LWNlcnRzLnNoIHwgMTI4ICsrKysrKysrKysrKysrKysrKysrKysr KysrKysrKysrKysrKysrKysrCiAxIGZpbGUgY2hhbmdlZCwgMTI4IGluc2VydGlvbnMoKykKIGNy ZWF0ZSBtb2RlIDEwMDc1NSBzY3JpcHRzL3JhdWMtZ2VuLXRlc3QtY2VydHMuc2gKCmRpZmYgLS1n aXQgYS9zY3JpcHRzL3JhdWMtZ2VuLXRlc3QtY2VydHMuc2ggYi9zY3JpcHRzL3JhdWMtZ2VuLXRl c3QtY2VydHMuc2gKbmV3IGZpbGUgbW9kZSAxMDA3NTUKaW5kZXggMDAwMDAwMDAwLi4wNmY0ZDI5 N2IKLS0tIC9kZXYvbnVsbAorKysgYi9zY3JpcHRzL3JhdWMtZ2VuLXRlc3QtY2VydHMuc2gKQEAg LTAsMCArMSwxMjggQEAKKyMhL2Jpbi9iYXNoCisjCisjIENvcHlyaWdodCAoQykgMjAxNyBieSBF bnJpY28gSm9lcm5zIDxlLmpvZXJuc0BwZW5ndXRyb25peC5kZT4KKyM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ICAgICAgICAgICAgPSAuICAgICAgICAgICAgICAgICAgICAgIyB0b3AgZGlyCitkYXRhYmFzZSAg ICAgICA9IFwkZGlyL2luZGV4LnR4dCAgICAgICAgIyBpbmRleCBmaWxlLgorbmV3X2NlcnRzX2Rp ciAgPSBcJGRpci9jZXJ0cyAgICAgICAgICAgICMgbmV3IGNlcnRzIGRpcgorCitjZXJ0aWZpY2F0 ZSAgICA9IFwkZGlyL2NhLmNlcnQucGVtICAgICAgICMgVGhlIENBIGNlcnQKK3NlcmlhbCAgICAg ICAgID0gXCRkaXIvc2VyaWFsICAgICAgICAgICAjIHNlcmlhbCBubyBmaWxlCitwcml2YXRlX2tl eSAgICA9IFwkZGlyL3ByaXZhdGUvY2Eua2V5LnBlbSMgQ0EgcHJpdmF0ZSBrZXkKK1JBTkRGSUxF ICAgICAgID0gXCRkaXIvcHJpdmF0ZS8ucmFuZCAgICAjIHJhbmRvbSBudW1iZXIgZmlsZQorCitk ZWZhdWx0X3N0YXJ0ZGF0ZSA9IDE5NzAwMTAxMDAwMDAwWgorZGVmYXVsdF9lbmRkYXRlID0gOTk5 OTEyMzEyMzU5NTlaCitkZWZhdWx0X2NybF9kYXlzPSAzMCAgICAgICAgICAgICAgICAgICAjIGhv dyBsb25nIGJlZm9yZSBuZXh0IENSTAorZGVmYXVsdF9tZCAgICAgPSBzaGEyNTYgICAgICAgICAg ICAgICAgIyBtZCB0byB1c2UKKworcG9saWN5ICAgICAgICAgPSBwb2xpY3lfYW55ICAgICAgICAg ICAgIyBkZWZhdWx0IHBvbGljeQorZW1haWxfaW5fZG4gICAgPSBubyAgICAgICAgICAgICAgICAg ICAgIyBEb24ndCBhZGQgdGhlIGVtYWlsIGludG8gY2VydCBETgorCituYW1lX29wdCAgICAgICA9 IGNhX2RlZmF1bHQgICAgICAgICAgICAjIFN1YmplY3QgbmFtZSBkaXNwbGF5IG9wdGlvbgorY2Vy dF9vcHQgICAgICAgPSBjYV9kZWZhdWx0ICAgICAgICAgICAgIy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