This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ubirch | |
package services.cluster | |
import com.ubirch.ConfPaths.CassandraClusterConfPaths | |
import com.ubirch.services.lifeCycle.Lifecycle | |
import com.typesafe.config.Config | |
import com.typesafe.scalalogging.LazyLogging | |
import io.getquill.context.cassandra.encoding.{ Decoders, Encoders } | |
import io.getquill.{ CassandraStreamContext, NamingStrategy, SnakeCase } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ubirch | |
package services.cluster | |
import com.ubirch.ConfPaths.CassandraClusterConfPaths | |
import com.ubirch.services.lifeCycle.Lifecycle | |
import com.typesafe.config.Config | |
import com.typesafe.scalalogging.LazyLogging | |
import io.getquill.{ CassandraStreamContext, NamingStrategy, SnakeCase } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ubirch | |
package services.cluster | |
import com.ubirch.ConfPaths.CassandraClusterConfPaths | |
import com.ubirch.util.URLsHelper | |
import com.datastax.oss.driver.api.core._ | |
import com.datastax.oss.driver.api.core.config.{ DefaultDriverOption, DriverConfigLoader, ProgrammaticDriverConfigLoaderBuilder } | |
import com.typesafe.config.Config | |
import com.typesafe.scalalogging.LazyLogging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ubirch | |
package services.cluster | |
import com.ubirch.ConfPaths.CassandraClusterConfPaths | |
import com.ubirch.util.URLsHelper | |
import com.datastax.driver.core._ | |
import com.datastax.driver.core.policies.RoundRobinPolicy | |
import com.typesafe.config.Config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://blog.pinterjann.is/ed25519-certificates.html | |
//openssl genpkey -algorithm ED25519 > a273f05a-c6bc-4649-a1ef-88c9430d0420.key | |
//openssl req -new -outform der -out a273f05a-c6bc-4649-a1ef-88c9430d0420.der -key a273f05a-c6bc-4649-a1ef-88c9430d0420.key -config openssl-25519.cnf | |
val privKey = GeneratorKeyFactory.getPrivKey(Base64.getDecoder.decode("MC4CAQAwBQYDK2VwBCIEIHaun1X0BqHaZqy/DmB/EByXyUgX7a1f/x+kM+bPqPb8").slice(16, 48), Curve.Ed25519) | |
val hardwareDeviceId = "a273f05a-c6bc-4649-a1ef-88c9430d0420" | |
val created = DateUtil.nowUTC | |
val validNotAfter = Some(created.plusYears(6)) | |
val validNotBefore = created |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const documents = [ | |
"./vaccine-medicinal-product.json", | |
"./vaccine-mah-manf.json", | |
"./vaccine-prophylaxis.json", | |
"./test-manf.json", | |
"./test-result.json", | |
"./test-type.json" | |
] | |
const activeStatus = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const fetch = require('node-fetch'); | |
const https = require('https'); | |
const fs = require('fs'); | |
const pfx_file = fs.readFileSync(__dirname + "/PFX.pfx"); | |
const ping = async (stage) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const request = require('request'); | |
const fs = require('fs'); | |
const cert = fs.readFileSync(__dirname + "/test.pem", "utf8"); | |
const keyFile = fs.readFileSync(__dirname + "/test.key", "utf8"); | |
const options = { | |
method: 'POST', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const request = require('request'); | |
const fs = require('fs'); | |
const pfx_file = fs.readFileSync(__dirname + "/PFX_FILE.pfx"); | |
const options = { | |
method: 'POST', | |
url: 'https://api.uve.demo.ubirch.com/api/uve/v1/verify', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Assuming you have to use a jar that can't be downloaded through a lib management system like maven or similar, you may want to | |
have this lib installed locally or as part your repo. | |
This is not a nice pattern, but sometimes, it is required. | |
You can use the install plug-in to install the jar located a particular place, you have to define the description of the | |
Locally installed lib.--> | |
<dependencies> | |
<dependency> |
NewerOlder