我正在尝试从 shell 脚本将 p12 转换为 pem,无需任何用户输入。我可以将密码作为脚本中的变量。
所以当我打电话时:
openssl pkcs12 -in *.p12 -out cert.pem -nodes
Run Code Online (Sandbox Code Playgroud)
终端打印“输入导入密码:”并等待输入。
我尝试使用以下方式输入密码:
echo $PASS | openssl pkcs12 -in *.p12 -out cert.pem -nodes
Run Code Online (Sandbox Code Playgroud)
以及尝试将标志与 openssl 命令一起使用,但不知道如何执行此操作。
我有一个 bash 脚本来部署我的 spring-boot 应用程序(使用竹子)。
当 spring-boot 应用程序启动并正在运行时,脚本被挂起
java -jar myApp.jar
Run Code Online (Sandbox Code Playgroud)
我尝试在后台运行它
java -jar myApp.jar &
Run Code Online (Sandbox Code Playgroud)
也
java -jar myApp.jar &
disown
Run Code Online (Sandbox Code Playgroud)
只是“&”似乎什么都不做,而“&”后跟“disown”使脚本失败。
如何在 spring-boot 应用程序继续运行时让脚本完成?
我有一个 JSON:
{
"i0": {
"j0": {
"a0": true
}
},
"i1": {
"j1": {
"a1": "stuff"
}
}
}
Run Code Online (Sandbox Code Playgroud)
我想要一个验证:如果a0是真的,a1应该是必需的。
我的架构目前是:
{
"$schema": "http://json-schema.org/draft-07/schema",
"id": "id",
"type": "object",
"required": [
"i0",
"i1"
],
"allOf": [
{
"if": {
"properties": {
"i0": {
"j0": {
"a0": true
}
}
}
},
"then": {
"properties": {
"i1": {
"j1": {
"required": [
"a1"
]
}
}
}
}
}
]
}
Run Code Online (Sandbox Code Playgroud)
该条件似乎实际上并未运行。required或者,如果我尝试将其置于与我正在检查的值相同的水平上,我已经看到了非常相似的条件。如:
"allOf": [
{ …Run Code Online (Sandbox Code Playgroud) bash ×1
deployment ×1
json ×1
jsonschema ×1
openssl ×1
piping ×1
sh ×1
shell ×1
spring-boot ×1